diff --git a/mysql/tables/llx_c_methode_commande_fournisseur.sql b/mysql/tables/llx_c_methode_commande_fournisseur.sql index c4ddb5b69a4..2d065759282 100644 --- a/mysql/tables/llx_c_methode_commande_fournisseur.sql +++ b/mysql/tables/llx_c_methode_commande_fournisseur.sql @@ -1,5 +1,5 @@ -- ======================================================================== --- Copyright (C) 2004 Rodolphe Quiedeville +-- Copyright (C) 2004-2005 Rodolphe Quiedeville -- Copyright (C) 2005 Laurent Destailleur -- -- $Id$ @@ -25,7 +25,9 @@ create table llx_c_methode_commande_fournisseur ( rowid integer AUTO_INCREMENT PRIMARY KEY, code varchar(30), - libelle varchar(30), - active tinyint default 1 NOT NULL + libelle varchar(60), + active tinyint default 1 NOT NULL, + + UNIQUE INDEX(code) )type=innodb;