mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 10:16:07 +02:00
Add transactional lock flag to actual flyway commands in script
This commit is contained in:
parent
22bf28b128
commit
cf590076ad
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue