Fix : uk and index on element_tag table

This commit is contained in:
Maxime Kohlhaas 2021-11-01 10:24:19 +01:00
parent 8858b2ba55
commit 3508aa92d6
2 changed files with 2 additions and 3 deletions

View File

@ -16,8 +16,6 @@
--
-- ============================================================================
ALTER TABLE llx_element_tag ADD PRIMARY KEY pk_element_tag (fk_categorie, fk_element);
ALTER TABLE llx_element_tag ADD INDEX idx_element_tag_fk_categorie (fk_categorie);
ALTER TABLE llx_element_tag ADD INDEX idx_element_tag_fk_element (fk_element);
ALTER TABLE llx_element_tag ADD UNIQUE INDEX idx_element_tag_uk (fk_categorie, fk_element);
ALTER TABLE llx_element_tag ADD CONSTRAINT fk_element_tag_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);

View File

@ -18,6 +18,7 @@
create table llx_element_tag
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_categorie integer NOT NULL,
fk_element integer NOT NULL,
import_key varchar(14)