Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: drop legacy pk (#19619)
ecmadaod6a8ac838a1d
diff --git a/backend/migrator/migration/3.16/0004##drop_worksheet_organizer_id.sql b/backend/migrator/migration/3.16/0004##drop_worksheet_organizer_id.sqlindex 006a0a75d4..afce6ac756 100644--- a/backend/migrator/migration/3.16/0004##drop_worksheet_organizer_id.sql+++ b/backend/migrator/migration/3.16/0004##drop_worksheet_organizer_id.sql@@ -1,5 +1,6 @@--- Drop unused id column from worksheet_organizer.+-- Drop unused id column and legacy PK if exists from worksheet_organizer.-- All queries use (worksheet_id, principal) which already has a unique index.+ALTER TABLE worksheet_organizer DROP CONSTRAINT IF EXISTS sheet_organizer_pkey;ALTER TABLE worksheet_organizer DROP CONSTRAINT IF EXISTS worksheet_organizer_pkey;ALTER TABLE worksheet_organizer DROP COLUMN IF EXISTS id;DROP INDEX IF EXISTS idx_worksheet_organizer_unique_sheet_id_principal;