From 4dee91a1ec376abadc1167020b2b918e410321ff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 6 Oct 2010 09:39:59 +0000 Subject: [PATCH] Fix: A fix to have new version of code able to run old migrate process --- htdocs/install/mysql/migration/2.1.0-2.2.0.sql | 2 ++ htdocs/install/mysql/migration/2.2.0-2.4.0.sql | 2 ++ htdocs/install/mysql/migration/2.4.0-2.5.0.sql | 2 ++ htdocs/install/mysql/migration/2.5.0-2.6.0.sql | 6 +++++- htdocs/install/mysql/migration/2.6.0-2.7.0.sql | 3 +++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/2.1.0-2.2.0.sql b/htdocs/install/mysql/migration/2.1.0-2.2.0.sql index 69d4be5acd6..b78bd1d42dc 100644 --- a/htdocs/install/mysql/migration/2.1.0-2.2.0.sql +++ b/htdocs/install/mysql/migration/2.1.0-2.2.0.sql @@ -1180,3 +1180,5 @@ UPDATE llx_product SET price_ttc = 0 WHERE price_ttc is NULL; -- Not used. Just to be compatible with upgrade process of higher versions alter table llx_const add column entity integer DEFAULT 1 NOT NULL; +-- Not used. Just to be compatible with 2.7 upgrade process or higher +alter table llx_menu add column enabled varchar(255) NULL default '1'; diff --git a/htdocs/install/mysql/migration/2.2.0-2.4.0.sql b/htdocs/install/mysql/migration/2.2.0-2.4.0.sql index d3ae4995d86..2a7959bf872 100644 --- a/htdocs/install/mysql/migration/2.2.0-2.4.0.sql +++ b/htdocs/install/mysql/migration/2.2.0-2.4.0.sql @@ -348,4 +348,6 @@ ALTER TABLE llx_surveys_answers_summary TYPE=INNODB; -- Not used. Just to be compatible with upgrade process of higher versions alter table llx_const add column entity integer DEFAULT 1 NOT NULL; +-- Not used. Just to be compatible with 2.7 upgrade process or higher +alter table llx_menu add column enabled varchar(255) NULL default '1'; diff --git a/htdocs/install/mysql/migration/2.4.0-2.5.0.sql b/htdocs/install/mysql/migration/2.4.0-2.5.0.sql index 369e3664dad..01a2d31931c 100644 --- a/htdocs/install/mysql/migration/2.4.0-2.5.0.sql +++ b/htdocs/install/mysql/migration/2.4.0-2.5.0.sql @@ -113,3 +113,5 @@ INSERT INTO llx_expedition_methode (rowid,code,libelle,description,active) VALUE -- Not used. Just to be compatible with upgrade process of higher versions alter table llx_const add column entity integer DEFAULT 1 NOT NULL; +-- Not used. Just to be compatible with 2.7 upgrade process or higher +alter table llx_menu add column enabled varchar(255) NULL default '1'; diff --git a/htdocs/install/mysql/migration/2.5.0-2.6.0.sql b/htdocs/install/mysql/migration/2.5.0-2.6.0.sql index 89759309ba7..bddcf2bbb7f 100644 --- a/htdocs/install/mysql/migration/2.5.0-2.6.0.sql +++ b/htdocs/install/mysql/migration/2.5.0-2.6.0.sql @@ -134,4 +134,8 @@ ALTER TABLE llx_usergroup DROP INDEX nom; ALTER TABLE llx_const ADD UNIQUE INDEX uk_const (name, entity); ALTER TABLE llx_user ADD UNIQUE INDEX uk_user_login (login, entity); -ALTER TABLE llx_usergroup ADD UNIQUE INDEX uk_usergroup_name (nom, entity); \ No newline at end of file +ALTER TABLE llx_usergroup ADD UNIQUE INDEX uk_usergroup_name (nom, entity); + + +-- Not used. Just to be compatible with 2.7 upgrade process or higher +alter table llx_menu add column enabled varchar(255) NULL default '1'; diff --git a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql index ea4474e5dc2..8799553203c 100644 --- a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql +++ b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql @@ -503,3 +503,6 @@ ALTER TABLE llx_propaldet ADD CONSTRAINT fk_propaldet_fk_propal FOREIGN KEY (fk_ ALTER TABLE llx_bank_class DROP INDEX idx_bank_class_lineid; ALTER TABLE llx_bank_class DROP INDEX uk_bank_class_lineid; ALTER TABLE llx_bank_class ADD UNIQUE INDEX uk_bank_class_lineid (lineid, fk_categ); + + +alter table llx_menu add column enabled varchar(255) NULL default '1';