Skip to content

Commit

Permalink
add running migration to the script
Browse files Browse the repository at this point in the history
  • Loading branch information
kadewu committed Oct 15, 2024
1 parent 238216c commit 81f09a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-automation.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
SNAPSHOT=$DIR"/update-automation-snapshot.sql"
# perl -pi -e 's/update_automation_snapshot_staging_saleor_cloud/public/' $SNAPSHOT
sed -i '' 's/update_automation_snapshot_staging_saleor_cloud/public/' $SNAPSHOT
sed -i '' 's/update_automation_snapshot_staging_saleor_cloud/public/' $SNAPSHOT
# please note that you should not use this password on production services
Expand All @@ -11,3 +10,4 @@ psql $DB_URL -c 'DROP DATABASE IF EXISTS e2e WITH(FORCE);'
psql $DB_URL -c 'CREATE DATABASE e2e;'
psql $FULL_DB_URL -c 'CREATE EXTENSION IF NOT EXISTS btree_gin; CREATE EXTENSION IF NOT EXISTS pg_trgm;'
psql $FULL_DB_URL -f $SNAPSHOT
docker compose exec api python manage.py migrate

0 comments on commit 81f09a8

Please sign in to comment.