Add url_id into unique index of bank_url
This commit is contained in:
parent
d9999d61f6
commit
003f499eb0
@ -80,3 +80,7 @@ create table llx_mailing_unsubscribe
|
||||
ALTER TABLE llx_mailing_unsubscribe ADD UNIQUE uk_mailing_unsubscribe(email, entity, unsubscribegroup);
|
||||
|
||||
ALTER TABLE llx_adherent ADD gender VARCHAR(10);
|
||||
|
||||
-- Add url_id into unique index of bank_url
|
||||
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);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2005-2019 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
|
||||
@ -17,6 +17,4 @@
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_bank_url ADD UNIQUE INDEX uk_bank_url (fk_bank,type);
|
||||
|
||||
--ALTER TABLE llx_bank_url ADD INDEX idx_bank_url_fk_bank (fk_bank);
|
||||
ALTER TABLE llx_bank_url ADD UNIQUE INDEX uk_bank_url (fk_bank, url_id, type);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user