Skip to content

Commit

Permalink
#3189 [Accident] add: categorie on investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka authored and nicolas-eoxia committed Aug 21, 2023
1 parent 816c60a commit b359de6
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
20 changes: 20 additions & 0 deletions sql/accident/llx_categorie_accident_investigation.key.sql
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_accident_investigation ADD PRIMARY KEY pk_categorie_accident_investigation (fk_categorie, fk_accident_investigation);
ALTER TABLE llx_categorie_accident_investigation ADD INDEX idx_categorie_accident_investigation_fk_categorie (fk_categorie);
ALTER TABLE llx_categorie_accident_investigation ADD INDEX idx_categorie_accident_investigation_fk_accident_investigation (fk_accident_investigation);
ALTER TABLE llx_categorie_accident_investigation ADD CONSTRAINT fk_categorie_accident_investigation_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
ALTER TABLE llx_categorie_accident_investigation ADD CONSTRAINT llx_categorie_accident_investigation_digiriskdolibarr_accident_investigation_rowid FOREIGN KEY (fk_accident_investigation) REFERENCES llx_digiriskdolibarr_accident_investigation (rowid);
20 changes: 20 additions & 0 deletions sql/accident/llx_categorie_accident_investigation.sql
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_accident_investigation(
fk_categorie integer NOT NULL,
fk_accident_investigation integer NOT NULL,
import_key varchar(14)
) ENGINE=innodb;
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CREATE TABLE llx_digiriskdolibarr_accident_investigation(
victim_skills text,
circumstances text,
fk_accident integer NOT NULL,
fk_task integer NOT NULL,
fk_task integer,
fk_user_creat integer NOT NULL,
fk_user_modif integer
) ENGINE=innodb;

0 comments on commit b359de6

Please sign in to comment.