-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1 [Certificate] fix: change sql file name for use framework name
- Loading branch information
1 parent
c258b40
commit 9d9cc8b
Showing
10 changed files
with
139 additions
and
34 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,2 @@ | ||
<?php | ||
//Silence is golden apple |
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,24 @@ | ||
-- Copyright (C) 2023 EVARISK <dev@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_saturne_certificate ADD INDEX idx_saturne_certificate_rowid (rowid); | ||
ALTER TABLE llx_saturne_certificate ADD INDEX idx_saturne_certificate_ref (ref); | ||
ALTER TABLE llx_saturne_certificate ADD INDEX idx_saturne_certificate_status (status); | ||
ALTER TABLE llx_saturne_certificate ADD INDEX idx_saturne_certificate_fk_element (fk_element); | ||
ALTER TABLE llx_saturne_certificate ADD INDEX idx_saturne_certificate_fk_product (fk_product); | ||
ALTER TABLE llx_saturne_certificate ADD INDEX idx_saturne_certificate_fk_soc (fk_soc); | ||
ALTER TABLE llx_saturne_certificate ADD INDEX idx_saturne_certificate_fk_project (fk_project); | ||
ALTER TABLE llx_saturne_certificate ADD UNIQUE INDEX uk_saturne_certificate_ref (ref, entity); | ||
ALTER TABLE llx_saturne_certificate ADD CONSTRAINT llx_saturne_certificate_fk_user_creat FOREIGN KEY (fk_user_creat) REFERENCES llx_user(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,42 @@ | ||
-- Copyright (C) 2023 EVARISK <dev@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_saturne_certificate( | ||
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL, | ||
ref varchar(128) DEFAULT '(PROV)' NOT NULL, | ||
ref_ext varchar(128), | ||
entity integer DEFAULT 1 NOT NULL, | ||
label varchar(255), | ||
description text, | ||
note_public text, | ||
note_private text, | ||
date_creation datetime NOT NULL, | ||
date_start datetime, | ||
date_end datetime, | ||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
import_key varchar(14), | ||
last_main_doc varchar(255), | ||
model_pdf varchar(255), | ||
status integer NOT NULL, | ||
json text, | ||
sha256 text, | ||
element_type text, | ||
fk_element integer, | ||
fk_product integer, | ||
fk_soc integer, | ||
fk_project integer, | ||
fk_user_creat integer NOT NULL, | ||
fk_user_modif integer | ||
) ENGINE=innodb; |
16 changes: 16 additions & 0 deletions
16
sql/certificate/llx_saturne_certificate_extrafields.key.sql
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,16 @@ | ||
-- Copyright (C) 2023 EVARISK <dev@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_saturne_certificate_extrafields ADD INDEX idx_certificate_fk_object(fk_object); |
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,21 @@ | ||
-- Copyright (C) 2023 EVARISK <dev@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_saturne_certificate_extrafields( | ||
rowid integer AUTO_INCREMENT PRIMARY KEY, | ||
tms timestamp, | ||
fk_object integer NOT NULL, | ||
import_key varchar(14) -- import key | ||
) 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