Skip to content

Commit

Permalink
fix: schema migrations dump
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-98 committed Dec 5, 2024
1 parent c5f7942 commit ce514d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db_scripts/local_testing/anvil_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ psql -U $SUPERUSER -d postgres -c "drop database $TMP_DB"
psql -U $SUPERUSER -d postgres -c "create database $TMP_DB"
pg_dump "$REMOTE_DB" | psql -U $SUPERUSER -d $TMP_DB
set -e
set +e
pg_dump "$REMOTE_DB" --table public.schema_migrations | psql -U $SUPERUSER -d $TMP_DB
set -e

# psql -U $SUPERUSER -d sample < db_scripts/local_testing/missing_table_from_download_db.sql
psql -U $SUPERUSER -d $TMP_DB < $PARENT_DIR/../../migrations/000016_rankings.up.sql
Expand Down

0 comments on commit ce514d7

Please sign in to comment.