generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #860 from CDCgov/devex-753/liquibase
753: Database Migrations with Liquibase
- Loading branch information
Showing
9 changed files
with
135 additions
and
15 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
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
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,11 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: 1 | ||
author: halprin | ||
labels: azure | ||
context: azure | ||
runAlways: true | ||
comment: Fix ownership of anything created in every migration run | ||
changes: | ||
- sql: | ||
sql: REASSIGN OWNED BY CURRENT_USER TO azure_pg_admin |
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,51 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: 1 | ||
author: jeff.crichlake | ||
labels: create-type | ||
context: metadata | ||
comment: create status type | ||
changes: | ||
- sql: | ||
sql: CREATE TYPE message_status AS ENUM ('PENDING', 'DELIVERED', 'FAILED') | ||
|
||
- changeSet: | ||
id: 2 | ||
author: jeff.crichlake | ||
labels: create-metadata-table | ||
context: metadata | ||
comment: create partner metadata table | ||
changes: | ||
- createTable: | ||
tableName: metadata | ||
columns: | ||
- column: | ||
name: received_message_id | ||
type: varchar(40) | ||
constraints: | ||
primaryKey: true | ||
nullable: false | ||
- column: | ||
name: sent_message_id | ||
type: varchar(40) | ||
- column: | ||
name: sender | ||
type: varchar(30) | ||
- column: | ||
name: receiver | ||
type: varchar(30) | ||
- column: | ||
name: hash_of_order | ||
type: varchar(1000) | ||
- column: | ||
name: time_received | ||
type: timestamptz | ||
- column: | ||
name: time_delivered | ||
type: timestamptz | ||
- column: | ||
name: delivery_status | ||
type: message_status | ||
- column: | ||
name: failure_reason | ||
type: varchar(1000) |
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,7 @@ | ||
databaseChangeLog: | ||
- include: | ||
file: etor/databaseMigrations/metadata.yml | ||
- include: | ||
file: etor/databaseMigrations/azure.yml | ||
comment: This include should always be last in this list | ||
labels: azure |
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