Update the release tool and add IF NOT EXISTS

This commit is contained in:
Sarah 2024-03-18 17:41:13 -04:00
parent efedd209de
commit c77af7c319
No known key found for this signature in database
GPG key ID: 3822381FB83F7414
2 changed files with 5 additions and 2 deletions

View file

@ -12,5 +12,5 @@
-- See the License for the specific language governing permissions and
-- limitations under the License.
CREATE INDEX CONCURRENTLY IDX69qun5kxt3eux5igrxrqcycv0 ON "DomainHistoryHost" (domain_history_domain_repo_id);
CREATE INDEX CONCURRENTLY IDXf2q9dqj899h1q8lah5y719nxd ON "PollMessage" (domain_repo_id);
CREATE INDEX CONCURRENTLY IF NOT EXISTS IDX69qun5kxt3eux5igrxrqcycv0 ON "DomainHistoryHost" (domain_history_domain_repo_id);
CREATE INDEX CONCURRENTLY IF NOT EXISTS IDXf2q9dqj899h1q8lah5y719nxd ON "PollMessage" (domain_repo_id);

View file

@ -78,6 +78,9 @@ if ! pgrep cloud_sql_proxy; then
exit 1
fi
# Set the transactional lock to false, session-level lock will be used instead
/flyway/flyway -postgresql.transactional.lock=false info
/flyway/flyway -community -user=${db_user} -password=${db_password} \
-url=jdbc:postgresql://localhost:5432/postgres \
-locations=classpath:sql/flyway \