Merge pull request #21321 from defrance/patch-208

NEW : Create llx_element_categorie.sql
This commit is contained in:
Laurent Destailleur 2022-07-10 19:05:36 +02:00 committed by GitHub
commit 2236ab53fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
-- ============================================================================
-- Copyright (C) 2021 Maxime Kohlhaas <support@atm-consulting.fr>
-- Copyright (C) 2022 Charlene Benke <charlene@patas-monkey.com>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@ -16,6 +16,7 @@
--
-- ============================================================================
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);
ALTER TABLE llx_element_categorie ADD UNIQUE INDEX idx_element_categorie_idx1 (fk_element, fk_categorie);
ALTER TABLE llx_element_contact ADD CONSTRAINT fk_element_categorie_fk_categorie FOREIGN KEY (fk_categorie) REFERENCES llx_fk_categorie(rowid);

View File

@ -1,5 +1,5 @@
-- ============================================================================
-- Copyright (C) 2021 Maxime Kohlhaas <support@atm-consulting.fr>
-- Copyright (C) 2022 charlene Benke <charlene@patas-monkey.com>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@ -16,7 +16,7 @@
--
-- ============================================================================
create table llx_element_tag
create table llx_element_categorie
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_categorie integer NOT NULL,