Merge pull request #1846 from aspangaro/3.6

Fix :: llx_c_type_resource when you update from a 3.6-beta
This commit is contained in:
Laurent Destailleur 2014-08-28 11:55:18 +02:00
commit f1993e719f
3 changed files with 5 additions and 2 deletions

View File

@ -293,6 +293,9 @@ create table llx_c_type_resource
active tinyint DEFAULT 1 NOT NULL
)ENGINE=innodb;
-- Fix llx_c_type_resource when you update from a 3.6-beta
ALTER TABLE llx_c_type_resource CHANGE libelle label VARCHAR(64) NOT NULL;
ALTER TABLE llx_c_type_resource ADD UNIQUE INDEX uk_c_type_resource_id (label, code);
-- Fix :: account_parent must be an int, not an account number

View File

@ -17,5 +17,5 @@
-- ========================================================================
ALTER TABLE llx_c_type_contact ADD UNIQUE INDEX uk_c_type_contact_id (element, source, code);
ALTER TABLE llx_c_type_resource ADD UNIQUE INDEX uk_c_type_resource_id (label, code);

View File

@ -29,6 +29,6 @@ create table llx_c_type_resource
(
rowid integer PRIMARY KEY,
code varchar(32) NOT NULL,
libelle varchar(64) NOT NULL,
label varchar(64) NOT NULL,
active tinyint DEFAULT 1 NOT NULL
)ENGINE=innodb;