Skip to content

Commit

Permalink
Update migration_dry_run.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Osama Faqhruldin authored Jun 18, 2024
1 parent 9718331 commit 4a1407b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/migration_dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@ jobs:
POSTGRES_LATEST_PORT: 5433
run: |
apk --update add postgresql-client
db_prod=postgres-prod://postgres:postgres@$POSTGRES_HOST:$POSTGRES_PROD_PORT/postgres
db_latest=postgres-latest://postgres:postgres@$POSTGRES_LATEST_HOST:$POSTGRES_LATEST_PORT/postgres
psql postgres -h $POSTGRES_HOST -p $POSTGRES_PROD_PORT -U postgres -P postgres -c ^"CREATE TABLE films (^
psql $db_prod -c ^"CREATE TABLE films (^
code char(5) CONSTRAINT firstkey PRIMARY KEY ^
title varchar(40) NOT NULL ^
);"
psql postgres -h $POSTGRES_LATEST_HOST -p $POSTGRES_LATEST_PORT -U postgres -P postgres -c ^"CREATE TABLE films ( ^
psql $db_latest -c ^"CREATE TABLE films ( ^
code char(5) CONSTRAINT firstkey PRIMARY KEY ^
title varchar(20) ^
additional char(5) ^
);"
pip install migra
db_prod=postgres-prod://postgres:postgres@$POSTGRES_HOST:$POSTGRES_PROD_PORT/postgres
db_latest=postgres-latest://postgres:postgres@$POSTGRES_LATEST_HOST:$POSTGRES_LATEST_PORT/postgres
migra $db_prod db_latest
Expand Down

0 comments on commit 4a1407b

Please sign in to comment.