On nomme les index non nomms

This commit is contained in:
Laurent Destailleur 2005-12-08 21:07:21 +00:00
parent 4e0d856c09
commit da9baf3bb4
5 changed files with 51 additions and 4 deletions

View File

@ -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
(

View File

@ -0,0 +1,24 @@
-- ============================================================================
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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);

View File

@ -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),

View File

@ -0,0 +1,24 @@
-- ========================================================================
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- $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);

View File

@ -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;