Fix: delete old index
This commit is contained in:
parent
f7815d0c8a
commit
0ef7f36b19
@ -480,4 +480,7 @@ ALTER TABLE llx_menu change user usertype integer NOT NULL default '0';
|
|||||||
|
|
||||||
-- Rename index
|
-- Rename index
|
||||||
ALTER TABLE llx_adherent_options DROP INDEX uk_adherent_options;
|
ALTER TABLE llx_adherent_options DROP INDEX uk_adherent_options;
|
||||||
|
ALTER TABLE llx_adherent_options DROP INDEX adhid;
|
||||||
ALTER TABLE llx_adherent_options ADD INDEX idx_adherent_options (adhid);
|
ALTER TABLE llx_adherent_options ADD INDEX idx_adherent_options (adhid);
|
||||||
|
|
||||||
|
ALTER TABLE llx_adherent DROP INDEX idx_adherent_fk_soc;
|
||||||
|
|||||||
@ -23,7 +23,6 @@
|
|||||||
ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_login (login, entity);
|
ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_login (login, entity);
|
||||||
ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_fk_soc (fk_soc);
|
ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_fk_soc (fk_soc);
|
||||||
|
|
||||||
ALTER TABLE llx_adherent ADD INDEX idx_adherent_fk_soc (fk_soc);
|
|
||||||
ALTER TABLE llx_adherent ADD INDEX idx_adherent_fk_adherent_type (fk_adherent_type);
|
ALTER TABLE llx_adherent ADD INDEX idx_adherent_fk_adherent_type (fk_adherent_type);
|
||||||
|
|
||||||
ALTER TABLE llx_adherent ADD CONSTRAINT adherent_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
ALTER TABLE llx_adherent ADD CONSTRAINT adherent_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user