forked from Evarisk/Digirisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evarisk#3518 [PreventionPlan] add: categories
- Loading branch information
1 parent
6232c43
commit 97c74f6
Showing
7 changed files
with
131 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Copyright (C) 2021-2023 EVARISK <technique@evarisk.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 | ||
-- the Free Software Foundation, either version 3 of the License, or | ||
-- (at your option) any later version. | ||
-- | ||
-- This program is distributed in the hope that it will be useful, | ||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
-- GNU General Public License for more details. | ||
-- | ||
-- You should have received a copy of the GNU General Public License | ||
-- along with this program. If not, see https://www.gnu.org/licenses/. | ||
|
||
ALTER TABLE llx_categorie_preventionplan ADD PRIMARY KEY pk_categorie_preventionplan (fk_categorie, fk_preventionplan); | ||
ALTER TABLE llx_categorie_preventionplan ADD INDEX idx_categorie_preventionplan_fk_categorie (fk_categorie); | ||
ALTER TABLE llx_categorie_preventionplan ADD INDEX idx_categorie_preventionplan_fk_preventionplan (fk_preventionplan); | ||
ALTER TABLE llx_categorie_preventionplan ADD CONSTRAINT fk_categorie_preventionplan_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid); | ||
ALTER TABLE llx_categorie_preventionplan ADD CONSTRAINT llx_categorie_preventionplan_digiriskdolibarr_preventionplan_rowid FOREIGN KEY (fk_preventionplan) REFERENCES llx_digiriskdolibarr_preventionplan (rowid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Copyright (C) 2021-2023 EVARISK <technique@evarisk.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 | ||
-- the Free Software Foundation, either version 3 of the License, or | ||
-- (at your option) any later version. | ||
-- | ||
-- This program is distributed in the hope that it will be useful, | ||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
-- GNU General Public License for more details. | ||
-- | ||
-- You should have received a copy of the GNU General Public License | ||
-- along with this program. If not, see https://www.gnu.org/licenses/. | ||
|
||
CREATE TABLE llx_categorie_preventionplan( | ||
fk_categorie integer NOT NULL, | ||
fk_preventionplan integer NOT NULL, | ||
import_key varchar(14) | ||
) ENGINE=innodb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters