From 514b50cc83698cdae961b22722b59f9ed9a4ba5e Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 12 Mar 2012 09:03:42 +0000 Subject: [PATCH] [-] BO : #PSFV-645 - Fields id_last_customer, id_last_customer_message and id_last_order of table ps_employee table must be int(10) and not tinyint. git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14026 b9a71923-0436-4b27-9f14-aed3839534dd --- install-dev/data/db_structure.sql | 6 +++--- install-dev/upgrade/sql/1.5.0.9.sql | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/install-dev/data/db_structure.sql b/install-dev/data/db_structure.sql index 41507f225..921ed7105 100644 --- a/install-dev/data/db_structure.sql +++ b/install-dev/data/db_structure.sql @@ -696,9 +696,9 @@ CREATE TABLE `PREFIX_employee` ( `bo_width` int(10) unsigned NOT NULL DEFAULT 0, `bo_show_screencast` tinyint(1) NOT NULL default '1', `active` tinyint(1) unsigned NOT NULL default '0', - `id_last_order` tinyint(1) unsigned NOT NULL default '0', - `id_last_customer_message` tinyint(1) unsigned NOT NULL default '0', - `id_last_customer` tinyint(1) unsigned NOT NULL default '0', + `id_last_order` int(10) unsigned NOT NULL default '0', + `id_last_customer_message` int(10) unsigned NOT NULL default '0', + `id_last_customer` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id_employee`), KEY `employee_login` (`email`,`passwd`), KEY `id_employee_passwd` (`id_employee`,`passwd`), diff --git a/install-dev/upgrade/sql/1.5.0.9.sql b/install-dev/upgrade/sql/1.5.0.9.sql index 0b4cf1b2f..b2d52d7c5 100644 --- a/install-dev/upgrade/sql/1.5.0.9.sql +++ b/install-dev/upgrade/sql/1.5.0.9.sql @@ -1 +1,7 @@ SET NAMES 'utf8'; + +ALTER TABLE `PREFIX_employee` + MODIFY COLUMN `id_last_order` INT(10) UNSIGNED NOT NULL DEFAULT 0, + MODIFY COLUMN `id_last_customer_message` INT(10) UNSIGNED NOT NULL DEFAULT 0, + MODIFY COLUMN `id_last_customer` INT(10) UNSIGNED NOT NULL DEFAULT 0; +