From 6d3d2bec77713ccda446e7955f5713ebac0bae38 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Tue, 27 Nov 2012 15:30:37 +0100 Subject: [PATCH] [-] INSTALLER : fixed bug #PSCFV-5721 Duplicate column name 'cover' --- install-dev/upgrade/php/image_shop1510.php | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 install-dev/upgrade/php/image_shop1510.php diff --git a/install-dev/upgrade/php/image_shop1510.php b/install-dev/upgrade/php/image_shop1510.php new file mode 100644 index 000000000..3f0ba3756 --- /dev/null +++ b/install-dev/upgrade/php/image_shop1510.php @@ -0,0 +1,36 @@ + +* @copyright 2007-2012 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + + +function image_shop1510() +{ + include_once(_PS_INSTALL_PATH_.'upgrade/php/generic_add_missing_column.php'); + + $column_to_add = array( + 'cover' => 'TINYINT(1) UNSIGNED NOT NULL AFTER `id_shop`'); + + return generic_add_missing_column('image_shop', $column_to_add); +}