Skip to content

Commit

Permalink
updated pre-condition table
Browse files Browse the repository at this point in the history
  • Loading branch information
sporth committed Sep 26, 2022
1 parent d4589af commit 4da7f55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/main/resources/db/changelog/changelog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ GO

-- changeset liquibase:1.13.2.1 dbms:mariadb,mysql
-- preconditions onFail:MARK_RAN
-- precondition-sql-check expectedResult:1 SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'users'
-- precondition-sql-check expectedResult:1 SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'shib_configuration_prop'
-- comment: /* we don't need to run this if the system is new */

ALTER TABLE shib_configuration_prop MODIFY COLUMN description LONGTEXT;
Expand All @@ -219,7 +219,7 @@ GO

-- changeset liquibase:1.13.2.1 dbms:postgresql
-- preconditions onFail:MARK_RAN
-- precondition-sql-check expectedResult:1 SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'users'
-- precondition-sql-check expectedResult:1 SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'shib_configuration_prop'
-- comment: /* we don't need to run this if the system is new */

ALTER TABLE shib_configuration_prop ALTER COLUMN description TYPE TEXT;
Expand All @@ -229,7 +229,7 @@ GO

-- changeset liquibase:1.13.2.1 dbms:mssql
-- preconditions onFail:MARK_RAN
-- precondition-sql-check expectedResult:1 SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'users'
-- precondition-sql-check expectedResult:1 SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'shib_configuration_prop'
-- comment: /* we don't need to run this if the system is new */

ALTER TABLE shib_configuration_prop ALTER COLUMN description TEXT;
Expand Down

0 comments on commit 4da7f55

Please sign in to comment.