File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,8 @@ until $dc exec postgres psql -U postgres -c "select 1" >/dev/null 2>&1 || [ $RET
88 echo " Waiting for postgres server, $(( RETRIES-- )) remaining attempts..."
99 sleep 1
1010done
11- indexes=$( $dc exec postgres psql -qAt -U postgres -c " SELECT indexname, indexdef FROM pg_indexes WHERE tablename = 'sentry_groupedmessage';" )
12- if [[ $indexes == * " sentry_groupedmessage_project_id_id_515aaa7e_uniq" * ]]; then
13- $dc exec postgres psql -qAt -U postgres -c " DROP INDEX sentry_groupedmessage_project_id_id_515aaa7e_uniq;"
14- fi
11+ $dc exec postgres psql -qAt -U postgres -c " ALTER TABLE IF EXISTS sentry_groupedmessage DROP CONSTRAINT IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;"
12+ $dc exec postgres psql -qAt -U postgres -c " DROP INDEX IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;"
1513
1614if [[ -n " ${CI:- } " || " ${SKIP_USER_CREATION:- 0} " == 1 ]]; then
1715 $dcr web upgrade --noinput
You can’t perform that action at this time.
0 commit comments