From 81f09a8ba1dc0700bd395af357e07bcb59191e5f Mon Sep 17 00:00:00 2001 From: kadewu Date: Tue, 15 Oct 2024 14:19:59 +0200 Subject: [PATCH] add running migration to the script --- run-automation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-automation.sh b/run-automation.sh index 255bd6ed8..dde9be2f2 100755 --- a/run-automation.sh +++ b/run-automation.sh @@ -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 @@ -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