Permalink
Browse files

[-] INSTALLER : First fix of bug #PSCFV-8168 reinsurance` CHANGE `fil…

…ename` to `file_name`
  • Loading branch information...
1 parent 9c4008d commit 266180c32174bd33896ee6dcd42707801d31e996 @gRoussac gRoussac committed Mar 25, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 install-dev/upgrade/php/p15016_add_missing_columns.php
@@ -38,6 +38,9 @@ function p15016_add_missing_columns()
if (!in_array('id_shop', $list_fields))
if (!Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'reinsurance` ADD `id_shop` INT(10) NOT NULL default "1" AFTER id_reinsurance'))
$errors[] = Db::getInstance()->getMsgError();
+ if (in_array('filename', $list_fields))
+ if (!Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'reinsurance` CHANGE `filename` `file_name` VARCHAR(100) NOT NULL'))
+ $errors[] = Db::getInstance()->getMsgError();
}
$id_module = Db::getInstance()->getValue('SELECT id_module FROM `'._DB_PREFIX_.'module` WHERE name="blocktopmenu"');

0 comments on commit 266180c

Please sign in to comment.