Add transactional lock flag to actual flyway commands in script

This commit is contained in:
Sarah 2024-03-20 16:04:59 -04:00
parent 22bf28b128
commit cf590076ad
No known key found for this signature in database
GPG key ID: 3822381FB83F7414

View file

@ -78,10 +78,8 @@ if ! pgrep cloud_sql_proxy; then
exit 1 exit 1
fi fi
# Set the transactional lock to false, session-level lock will be used instead /flyway/flyway -postgresql.transactional.lock=false -community \
#/flyway/flyway -postgresql.transactional.lock=false info -user=${db_user} -password=${db_password} \
/flyway/flyway -community -user=${db_user} -password=${db_password} \
-url=jdbc:postgresql://localhost:5432/postgres \ -url=jdbc:postgresql://localhost:5432/postgres \
-locations=classpath:sql/flyway \ -locations=classpath:sql/flyway \
${flyway_action} ${flyway_action}
@ -89,7 +87,8 @@ migration_result=$?
if [ ${flyway_action} == "migrate" ]; then if [ ${flyway_action} == "migrate" ]; then
# After deployment, log the current schema. # After deployment, log the current schema.
/flyway/flyway -community -user=${db_user} -password=${db_password} \ /flyway/flyway -postgresql.transactional.lock=false -community \
-user=${db_user} -password=${db_password} \
-url=jdbc:postgresql://localhost:5432/postgres \ -url=jdbc:postgresql://localhost:5432/postgres \
-locations=classpath:sql/flyway \ -locations=classpath:sql/flyway \
info info