From 5a131250f7f8aa83d60526bf5f3105594f6bb6bc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Dec 2008 01:08:03 +0000 Subject: [PATCH] Add position in member personalized fields --- mysql/migration/2.4.0-2.5.0.sql | 5 +++++ mysql/tables/llx_adherent_options_label.sql | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mysql/migration/2.4.0-2.5.0.sql b/mysql/migration/2.4.0-2.5.0.sql index 38455b36f59..c19a94e6bf1 100644 --- a/mysql/migration/2.4.0-2.5.0.sql +++ b/mysql/migration/2.4.0-2.5.0.sql @@ -80,6 +80,11 @@ alter table llx_don add import_key varchar(14); ALTER TABLE llx_export_model DROP INDEX uk_export_model; ALTER TABLE llx_export_model ADD UNIQUE uk_export_model (label,type); +alter table llx_adherent_options_label add column type varchar(8); +alter table llx_adherent_options_label add column size integer DEFAULT 0; +alter table llx_adherent_options_label add column pos integer DEFAULT 0; + + -- Reverse option update llx_const set visible = 1, name = 'FACTURE_ENABLE_RECUR', value='1' where name = 'FACTURE_DISABLE_RECUR' and value = '0'; delete from llx_const where name = 'FACTURE_DISABLE_RECUR' and value = '1'; diff --git a/mysql/tables/llx_adherent_options_label.sql b/mysql/tables/llx_adherent_options_label.sql index ed8765279b0..43a17d7a4d5 100644 --- a/mysql/tables/llx_adherent_options_label.sql +++ b/mysql/tables/llx_adherent_options_label.sql @@ -21,7 +21,10 @@ create table llx_adherent_options_label ( - name varchar(64) PRIMARY KEY, -- nom de l'attribut - tms timestamp, - label varchar(255) NOT NULL -- label correspondant a l'attribut + name varchar(64) PRIMARY KEY, -- nom de l'attribut + tms timestamp, + label varchar(255) NOT NULL, -- label correspondant a l'attribut + type varchar(8), + size integer DEFAULT 0; + pos integer DEFAULT 0; )type=innodb;