diff --git a/alembic/versions/0021_unified_contacts.py b/alembic/versions/0021_unified_contacts.py index 5b520e8..d6b58d9 100644 --- a/alembic/versions/0021_unified_contacts.py +++ b/alembic/versions/0021_unified_contacts.py @@ -70,6 +70,8 @@ def upgrade() -> None: logger.info("Table %s does not exist — nothing to rename", tbl) # ── 2. Create new contacts table ────────────────────────────────── + # Drop indexes that were carried over from the renamed old tables + op.execute("DROP INDEX IF EXISTS ix_contacts_tenant_id") op.create_table( "contacts", sa.Column("id", UUID(as_uuid=True), primary_key=True, server_default=sa.text("gen_random_uuid()")),