Commit 534f85ca authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

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

parent 3ed54b38
BASE=buyer_assign_group
PLUGINTYPE=vmcustom
ZIPBASE=opentools_vm2
VERSION=1.6.1
ZIPBASE=opentools_vm
VERSION=1.6.2
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html
......
......@@ -91,16 +91,16 @@ class plgVmCustomBuyer_Assign_Group extends vmCustomPlugin {
function getTableSQLFields() {
$SQLfields = array(
'id' => 'int(1) UNSIGNED NOT NULL AUTO_INCREMENT',
'order_id' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
'user_id' => 'int(11) UNSIGNED DEFAULT 0',
'virtuemart_user_id' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
'virtuemart_custom_id' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
'virtuemart_customfield_id' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
'virtuemart_order_item_id' => 'int(11) UNSIGNED NULL DEFAULT 0',
'group_id' => 'int(11) UNSIGNED NULL DEFAULT 0',
'group_type' => 'int(1) UNSIGNED NULL DEFAULT 0',
'group_add' => 'bool DEFAULT 1',
'modified' => 'bool DEFAULT 0',
'order_id' => 'int(11) UNSIGNED NOT NULL DEFAULT \'0\'',
'user_id' => 'int(11) UNSIGNED DEFAULT \'0\'',
'virtuemart_user_id' => 'int(11) UNSIGNED NOT NULL DEFAULT \'0\'',
'virtuemart_custom_id' => '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\'',
'group_id' => 'int(11) UNSIGNED DEFAULT \'0\'',
'group_type' => 'int(1) UNSIGNED DEFAULT \'0\'',
'group_add' => 'tinyint(1) DEFAULT \'1\'',
'modified' => 'tinyint(1) DEFAULT \'0\'',
);
return $SQLfields;
}
......
......@@ -6,7 +6,7 @@
<authorUrl>http://www.open-tools.net/</authorUrl>
<copyright>Copyright (C) 2013-2014 Reinhold Kainhofer. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl.html GNU/GPL v3+</license>
<version>1.6.1</version>
<version>1.6.2</version>
<description>VMCUSTOM_BUYER_GROUP_DESC</description>
<files>
<filename plugin="buyer_assign_group">buyer_assign_group.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