From da9baf3bb422fb34d031c823e497d415dfca2ce7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 8 Dec 2005 21:07:21 +0000 Subject: [PATCH] =?UTF-8?q?On=20nomme=20les=20index=20non=20nomm=E9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/1.1.0-2.0.0.sql | 1 - mysql/tables/llx_bank_account.key.sql | 24 ++++++++++++++++++++++++ mysql/tables/llx_bank_account.sql | 2 +- mysql/tables/llx_c_currencies.key.sql | 24 ++++++++++++++++++++++++ mysql/tables/llx_c_currencies.sql | 4 ++-- 5 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 mysql/tables/llx_bank_account.key.sql create mode 100644 mysql/tables/llx_c_currencies.key.sql 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;