Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated "all-in-one" DB scripts and repo test cleanup procedures.
- Loading branch information
Showing
17 changed files
with
343 additions
and
549 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CREATE TABLE m1_a6_c13_definition ( | ||
name_norm VARCHAR(255), | ||
name_orig VARCHAR(255), | ||
oid VARCHAR(36) NOT NULL, | ||
PRIMARY KEY (oid) | ||
); | ||
|
||
CREATE TABLE m1_a6_certification_campaign ( | ||
definitionRef_relation VARCHAR(157), | ||
definitionRef_targetOid VARCHAR(36), | ||
definitionRef_type INTEGER, | ||
name_norm VARCHAR(255), | ||
name_orig VARCHAR(255), | ||
oid VARCHAR(36) NOT NULL, | ||
PRIMARY KEY (oid) | ||
); | ||
|
||
ALTER TABLE m1_a6_c13_definition | ||
ADD CONSTRAINT uc_a6_c13_definition_name UNIQUE (name_norm); | ||
|
||
ALTER TABLE m1_a6_certification_campaign | ||
ADD CONSTRAINT uc_a6_c13_campaign_name UNIQUE (name_norm); | ||
|
||
ALTER TABLE m1_a6_c13_definition | ||
ADD CONSTRAINT fk_a6_c13_definition | ||
FOREIGN KEY (oid) | ||
REFERENCES m_object; | ||
|
||
ALTER TABLE m1_a6_certification_campaign | ||
ADD CONSTRAINT fk_a6_c13_campaign | ||
FOREIGN KEY (oid) | ||
REFERENCES m_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
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
CREATE TABLE m1_a6_c13_definition ( | ||
name_norm VARCHAR(255), | ||
name_orig VARCHAR(255), | ||
oid VARCHAR(36) NOT NULL, | ||
PRIMARY KEY (oid) | ||
) | ||
DEFAULT CHARACTER SET utf8 | ||
COLLATE utf8_bin | ||
ENGINE=InnoDB; | ||
|
||
CREATE TABLE m1_a6_certification_campaign ( | ||
definitionRef_relation VARCHAR(157), | ||
definitionRef_targetOid VARCHAR(36), | ||
definitionRef_type INTEGER, | ||
name_norm VARCHAR(255), | ||
name_orig VARCHAR(255), | ||
oid VARCHAR(36) NOT NULL, | ||
PRIMARY KEY (oid) | ||
) | ||
DEFAULT CHARACTER SET utf8 | ||
COLLATE utf8_bin | ||
ENGINE=InnoDB; | ||
|
||
ALTER TABLE m1_a6_c13_definition | ||
ADD CONSTRAINT uc_a6_c13_definition_name UNIQUE (name_norm); | ||
|
||
ALTER TABLE m1_a6_certification_campaign | ||
ADD CONSTRAINT uc_a6_c13_campaign_name UNIQUE (name_norm); | ||
|
||
ALTER TABLE m1_a6_c13_definition | ||
ADD CONSTRAINT fk_a6_c13_definition | ||
FOREIGN KEY (oid) | ||
REFERENCES m_object (oid); | ||
|
||
ALTER TABLE m1_a6_certification_campaign | ||
ADD CONSTRAINT fk_a6_c13_campaign | ||
FOREIGN KEY (oid) | ||
REFERENCES m_object (oid); |
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
Oops, something went wrong.