-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #204 from nsacyber/issue-203
[#203] New version 1.1.1 for release
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 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 |
---|---|---|
@@ -1 +1 @@ | ||
1.1.0 | ||
1.1.1 |
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,23 @@ | ||
DROP PROCEDURE IF EXISTS upgrade_schema_to_1_1_1; | ||
DELIMITER '//' | ||
|
||
CREATE PROCEDURE upgrade_schema_to_1_1_1() | ||
BEGIN | ||
IF(NOT EXISTS(SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA='hirs_db' AND TABLE_NAME='Certificate' AND COLUMN_NAME='tcgCredentialMajorVersion')) THEN | ||
ALTER TABLE Certificate ADD tcgCredentialMajorVersion int(11) DEFAULT NULL; | ||
END IF; | ||
|
||
IF(NOT EXISTS(SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA='hirs_db' AND TABLE_NAME='Certificate' AND COLUMN_NAME='tcgCredentialMinorVersion')) THEN | ||
ALTER TABLE Certificate ADD tcgCredentialMinorVersion int(11) DEFAULT NULL; | ||
END IF; | ||
|
||
IF(NOT EXISTS(SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA='hirs_db' AND TABLE_NAME='Certificate' AND COLUMN_NAME='tcgCredentialRevisionLevel')) THEN | ||
ALTER TABLE Certificate ADD tcgCredentialRevisionLevel int(11) DEFAULT NULL; | ||
END IF; | ||
|
||
END// | ||
DELIMITER ';' | ||
|
||
CALL upgrade_schema_to_1_1_1; | ||
DROP PROCEDURE upgrade_schema_to_1_1_1; | ||
|