Fix: delete old index

This commit is contained in:
Regis Houssin 2009-11-07 08:47:01 +00:00
parent f7815d0c8a
commit 0ef7f36b19
2 changed files with 3 additions and 1 deletions

View File

@ -480,4 +480,7 @@ ALTER TABLE llx_menu change user usertype integer NOT NULL default '0';
-- Rename index
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 DROP INDEX idx_adherent_fk_soc;

View File

@ -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_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 CONSTRAINT adherent_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);