Add indexes on product table

This commit is contained in:
Laurent Destailleur 2009-02-15 14:54:30 +00:00
parent f7640aab2e
commit a51a7a6a87
2 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,9 @@ ALTER TABLE llx_product drop column stock_propale;
ALTER TABLE llx_product drop column stock_commande;
ALTER TABLE llx_product add column stock integer after import_key;
ALTER TABLE llx_product ADD INDEX idx_product_barcode (barcode);
ALTER TABLE llx_product ADD INDEX idx_product_import_key (import_key);
ALTER TABLE llx_adherent drop index login;
ALTER TABLE llx_adherent ADD UNIQUE INDEX uk_adherent_login (login);

View File

@ -21,4 +21,7 @@
ALTER TABLE llx_product ADD UNIQUE uk_product_ref (ref);
ALTER TABLE llx_product ADD INDEX idx_product_barcode (barcode);
ALTER TABLE llx_product ADD INDEX idx_product_import_key (import_key);