Skip to content

Commit

Permalink
SHIBUI-2273
Browse files Browse the repository at this point in the history
Setup liquidbase to run for POSTGRES
  • Loading branch information
chasegawa committed Jun 14, 2022
1 parent 47bc153 commit 7809cfe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions backend/src/main/resources/db/changelog/changelog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,25 @@

-- changeset liquibase:1.11.0 dbms:mariadb,mysql,postgresql
-- preconditions onFail:MARK_RAN
-- precondition-sql-check expectedResult:1 SELECT 1 FROM users
-- precondition-sql-check expectedResult:1 SELECT count(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'users'
-- comment: /* we don't need to run this if the system is new */
ALTER TABLE resource_backed_metadata_resolver
RENAME file TO file_resource;
RENAME "file" TO "file_resource";
GO
ALTER TABLE organizationurl
RENAME 'value' TO 'uri_value';
RENAME "value" TO "uri_value";
GO
ALTER TABLE organization_name
RENAME "value" TO "name_value";
GO
ALTER TABLE organization_display_name
RENAME "value" TO "name_value";
GO
ALTER TABLE service_description
RENAME "value" TO "name_value";
GO
ALTER TABLE service_name
RENAME "value" TO "name_value";
GO

-- changeset liquibase:1.11.0 dbms:mssql
Expand Down
2 changes: 1 addition & 1 deletion testbed/postgres/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
networks:
- front
ports:
- 3306:3306
- 5432:5432
shibui:
image: unicon/shibui
ports:
Expand Down

0 comments on commit 7809cfe

Please sign in to comment.