-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Old prod tables previously not added to the repo schema
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2021_03_03_BF_automationError.sql', 'ONGOING'); | ||
|
||
CREATE TABLE `BF_automationError` ( | ||
`automationErrorId` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
`errorType` varchar(40) NOT NULL, | ||
`solution` text DEFAULT NULL, | ||
PRIMARY KEY (`automationErrorId`) | ||
); | ||
|
||
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2021_03_03_BF_automationError.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,18 @@ | ||
INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2021_03_03_BF_automationFault.sql', 'ONGOING'); | ||
|
||
CREATE TABLE `BF_automationFault` ( | ||
`automationFaultId` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
`automationErrorId` int(10) unsigned DEFAULT NULL, | ||
`containerId` int(10) unsigned DEFAULT NULL, | ||
`severity` enum('1','2','3') DEFAULT NULL, | ||
`stacktrace` text DEFAULT NULL, | ||
`resolved` tinyint(1) DEFAULT NULL, | ||
`faultTimeStamp` timestamp NOT NULL DEFAULT current_timestamp(), | ||
PRIMARY KEY (`automationFaultId`), | ||
KEY `BF_automationFault_ibfk1` (`automationErrorId`), | ||
KEY `BF_automationFault_ibfk2` (`containerId`), | ||
CONSTRAINT `BF_automationFault_ibfk1` FOREIGN KEY (`automationErrorId`) REFERENCES `BF_automationError` (`automationErrorId`), | ||
CONSTRAINT `BF_automationFault_ibfk2` FOREIGN KEY (`containerId`) REFERENCES `Container` (`containerId`) | ||
); | ||
|
||
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2021_03_03_BF_automationFault.sql'; |