Skip to content
Snippets Groups Projects
Commit a5749971 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Qual: Add unique keys constraints on barcode.

parent 82c2ef97
No related branches found
No related tags found
No related merge requests found
......@@ -25,3 +25,6 @@ ALTER TABLE llx_product ADD INDEX idx_product_label (label);
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_product ADD INDEX idx_product_seuil_stock_alerte (seuil_stock_alerte);
ALTER TABLE llx_product ADD UNIQUE INDEX uk_product_barcode (barcode, fk_barcode_type, entity);
......@@ -17,10 +17,14 @@
-- ===================================================================
ALTER TABLE llx_societe ADD UNIQUE uk_societe_prefix_comm(prefix_comm, entity);
ALTER TABLE llx_societe ADD UNIQUE uk_societe_code_client(code_client, entity);
ALTER TABLE llx_societe ADD UNIQUE INDEX uk_societe_prefix_comm(prefix_comm, entity);
ALTER TABLE llx_societe ADD UNIQUE INDEX uk_societe_code_client(code_client, entity);
ALTER TABLE llx_societe ADD UNIQUE INDEX uk_societe_code_fournisseur(code_fournisseur, entity);
ALTER TABLE llx_societe ADD UNIQUE INDEX uk_societe_barcode (barcode, fk_barcode_type, entity);
ALTER TABLE llx_societe ADD INDEX idx_societe_user_creat(fk_user_creat);
ALTER TABLE llx_societe ADD INDEX idx_societe_user_modif(fk_user_modif);
-- ALTER TABLE llx_societe ADD FOREIGN KEY fk_prospectlevel llx_c_prospectlevel(code);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment