diff --git a/mysql/tables/llx_adherent_options.sql b/mysql/tables/llx_adherent_options.sql index 881cc1f066e..9b5aa5821b4 100644 --- a/mysql/tables/llx_adherent_options.sql +++ b/mysql/tables/llx_adherent_options.sql @@ -26,8 +26,6 @@ create table llx_adherent_options optid integer AUTO_INCREMENT PRIMARY KEY, tms timestamp, adhid integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel --- telfixe varchar(15), --- teljob varchar(15) UNIQUE INDEX(adhid) )type=innodb; diff --git a/mysql/tables/llx_c_ape.sql b/mysql/tables/llx_c_ape.sql index 2646b47f3f6..d3653a8188f 100644 --- a/mysql/tables/llx_c_ape.sql +++ b/mysql/tables/llx_c_ape.sql @@ -23,9 +23,11 @@ create table llx_c_ape ( - rowid integer AUTO_INCREMENT UNIQUE, - code_ape varchar(5) PRIMARY KEY, + rowid integer AUTO_INCREMENT PRIMARY KEY, + code_ape varchar(5) NOT NULL, libelle varchar(255), - active tinyint DEFAULT 1 NOT NULL + active tinyint DEFAULT 1 NOT NULL, + + UNIQUE INDEX(code_ape) )type=innodb; diff --git a/mysql/tables/llx_facture_fourn.sql b/mysql/tables/llx_facture_fourn.sql index c008444ccd0..b69af48883b 100644 --- a/mysql/tables/llx_facture_fourn.sql +++ b/mysql/tables/llx_facture_fourn.sql @@ -44,5 +44,5 @@ create table llx_facture_fourn note text, - UNIQUE INDEX (facnumber, fk_soc) + UNIQUE INDEX(facnumber, fk_soc) )type=innodb; diff --git a/mysql/tables/llx_livre.sql b/mysql/tables/llx_livre.sql index 939a253f8c2..543270f9b7a 100644 --- a/mysql/tables/llx_livre.sql +++ b/mysql/tables/llx_livre.sql @@ -36,6 +36,6 @@ create table llx_livre fk_user_author integer, frais_de_port tinyint DEFAULT 1, - UNIQUE(ref) + UNIQUE INDEX(ref) )type=innodb;