From ed04842604c396e8e11d32a375208c20ec87554b Mon Sep 17 00:00:00 2001 From: anthony sottile <103459774+asottile-sentry@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:56:16 -0400 Subject: [PATCH] remove index workaround (#3730) a hard stop is in place with this so it can be removed now --- install/set-up-and-migrate-database.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/install/set-up-and-migrate-database.sh b/install/set-up-and-migrate-database.sh index 2d4e132..50822a4 100644 --- a/install/set-up-and-migrate-database.sh +++ b/install/set-up-and-migrate-database.sh @@ -10,15 +10,6 @@ if [[ -z "${SKIP_SENTRY_MIGRATIONS:-}" ]]; then exit 1 fi - # Using django ORM to provide broader support for users with external databases - $dcr web shell -c " -from django.db import connection - -with connection.cursor() as cursor: - cursor.execute('ALTER TABLE IF EXISTS sentry_groupedmessage DROP CONSTRAINT IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;') - cursor.execute('DROP INDEX IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;') -" - if [[ -n "${CI:-}" || "${SKIP_USER_CREATION:-0}" == 1 ]]; then $dcr web upgrade --noinput --create-kafka-topics echo ""