Fix: Bug de contrainte unicit pas assez large

This commit is contained in:
Laurent Destailleur 2006-09-16 13:14:18 +00:00
parent 5e822a1d71
commit fa3b35ad86
2 changed files with 16 additions and 2 deletions

View File

@ -195,6 +195,18 @@ alter table llx_paiementfourn add statut smallint(6) NOT NULL DEFAULT 0;
update llx_bank_url set type = 'payment_supplier' where label = '(paiement)' and type='payment' and url like '%/fourn/%';
alter table llx_bank_url drop index fk_bank;
alter table llx_bank_url drop index fk_bank_2;
alter table llx_bank_url drop index fk_bank_3;
alter table llx_bank_url drop index fk_bank_4;
alter table llx_bank_url drop index fk_bank_5;
alter table llx_bank_url drop index fk_bank_6;
alter table llx_bank_url drop index fk_bank_7;
alter table llx_bank_url drop index fk_bank_8;
alter table llx_bank_url drop index fk_bank_9;
ALTER TABLE llx_bank_url DROP INDEX uk_bank_url;
ALTER TABLE llx_bank_url ADD UNIQUE INDEX uk_bank_url (fk_bank,url_id,type);
create table llx_societe_adresse_livraison
(

View File

@ -1,5 +1,5 @@
-- ===================================================================
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
-- Copyright (C) 2005-2006 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
@ -21,4 +21,6 @@
-- ===================================================================
ALTER TABLE llx_bank_url ADD UNIQUE uk_bank_url (fk_bank,url_id);
ALTER TABLE llx_bank_url ADD UNIQUE uk_bank_url (fk_bank,url_id,type);
--ALTER TABLE llx_bank_url ADD INDEX idx_bank_url_fk_bank (fk_bank);