diff --git a/mysql/migration/1.1.0-2.0.0.sql b/mysql/migration/1.1.0-2.0.0.sql index f7310c8be0a..60613ead7b9 100644 --- a/mysql/migration/1.1.0-2.0.0.sql +++ b/mysql/migration/1.1.0-2.0.0.sql @@ -1886,7 +1886,6 @@ create table llx_societe_perms drop table if exists llx_contact_facture; -drop table if exists llx_c_type_contact; create table llx_c_type_contact ( diff --git a/mysql/tables/llx_bank_account.key.sql b/mysql/tables/llx_bank_account.key.sql new file mode 100644 index 00000000000..f927a409f16 --- /dev/null +++ b/mysql/tables/llx_bank_account.key.sql @@ -0,0 +1,24 @@ +-- ============================================================================ +-- Copyright (C) 2005 Laurent Destailleur +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-- +-- $Id$ +-- $Source$ +-- +-- ============================================================================ + + +ALTER TABLE llx_bank_account ADD UNIQUE uk_bank_account_label (label); diff --git a/mysql/tables/llx_bank_account.sql b/mysql/tables/llx_bank_account.sql index 4010b782665..d30c897ef14 100644 --- a/mysql/tables/llx_bank_account.sql +++ b/mysql/tables/llx_bank_account.sql @@ -30,7 +30,7 @@ create table llx_bank_account rowid integer AUTO_INCREMENT PRIMARY KEY, datec datetime, tms timestamp, - label varchar(30) UNIQUE, + label varchar(30), bank varchar(60), code_banque varchar(7), code_guichet varchar(6), diff --git a/mysql/tables/llx_c_currencies.key.sql b/mysql/tables/llx_c_currencies.key.sql new file mode 100644 index 00000000000..439a5c264bb --- /dev/null +++ b/mysql/tables/llx_c_currencies.key.sql @@ -0,0 +1,24 @@ +-- ======================================================================== +-- Copyright (C) 2005 Laurent Destailleur +-- +-- $Id$ +-- $Source$ +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-- +-- ======================================================================== + + +ALTER TABLE llx_c_currencies ADD UNIQUE uk_c_currencies_code_iso(code_iso); diff --git a/mysql/tables/llx_c_currencies.sql b/mysql/tables/llx_c_currencies.sql index d7ebdcf51c0..6d96f64bedc 100644 --- a/mysql/tables/llx_c_currencies.sql +++ b/mysql/tables/llx_c_currencies.sql @@ -22,8 +22,8 @@ create table llx_c_currencies ( - code varchar(2) UNIQUE PRIMARY KEY, - code_iso varchar(3) UNIQUE NOT NULL, + code varchar(2) PRIMARY KEY, + code_iso varchar(3) NOT NULL, label varchar(64), active tinyint DEFAULT 1 NOT NULL )type=innodb;