Commit c4113c0f authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V1.8.2: Fix SQL so that VM doesnt always try to alter the database

parent 127a9de4
BASE=downloads_for_sale
PLUGINTYPE=vmcustom
VERSION=1.8.1
VERSION=1.8.2
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html
......
......@@ -663,9 +663,9 @@ class plgVmCustomDownloads_for_Sale extends vmCustomPlugin {
function getTableSQLFields() {
$SQLfields = array(
'id' => 'int(1) UNSIGNED NOT NULL AUTO_INCREMENT',
'virtuemart_customfield_id' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
'virtuemart_order_item_id' => 'int(11) UNSIGNED NULL DEFAULT 0',
'downloaded' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
'virtuemart_customfield_id' => 'int(11) UNSIGNED NOT NULL DEFAULT \'0\'',
'virtuemart_order_item_id' => 'int(11) UNSIGNED DEFAULT \'0\'',
'downloaded' => 'int(11) UNSIGNED NOT NULL DEFAULT \'0\'',
);
return $SQLfields;
}
......@@ -780,8 +780,7 @@ class plgVmCustomDownloads_for_Sale extends vmCustomPlugin {
->from('#__extensions')
->where('folder = '.$db->quote($this->_type))
->where('element = '.$db->quote($this->_name))
->where('type =' . $db->quote('plugin'))
->order('ordering');
->where('type =' . $db->quote('plugin'));
$plugin = $db->setQuery($query)->loadObject();
if (!$plugin)
......
......@@ -6,7 +6,7 @@
<authorUrl>http://www.open-tools.net/</authorUrl>
<copyright>Copyright (C) 2013 Reinhold Kainhofer. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl.html GNU/GPL v3+</license>
<version>1.8.1</version>
<version>1.8.2</version>
<description>VMCUSTOM_DLSALE_DESC</description>
<files>
<filename plugin="downloads_for_sale">downloads_for_sale.php</filename>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment