From f18532087f1ee743be059e72990bac52e0eba087 Mon Sep 17 00:00:00 2001 From: Galindo97 Date: Wed, 20 May 2026 11:59:32 -0500 Subject: [PATCH] fix(schema): remove unused ENUM types from PostgreSQL during downgrade --- backend/alembic/versions/9db46c604463_initial_schema.py | 6 ++++++ frontend/pnpm-workspace.yaml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/backend/alembic/versions/9db46c604463_initial_schema.py b/backend/alembic/versions/9db46c604463_initial_schema.py index 9c02a47c..01962761 100644 --- a/backend/alembic/versions/9db46c604463_initial_schema.py +++ b/backend/alembic/versions/9db46c604463_initial_schema.py @@ -5083,3 +5083,9 @@ def downgrade() -> None: op.drop_index(op.f('ix_a24_inv_aphis_catalog_company_id'), table_name='inv_aphis_catalog', schema='a24') op.drop_table('inv_aphis_catalog', schema='a24') # ### end Alembic commands ### + + # Eliminar ENUM types de PostgreSQL — no se borran automáticamente con las tablas + op.execute("DROP TYPE IF EXISTS tenanttype") + op.execute("DROP TYPE IF EXISTS licenseplan") + op.execute("DROP TYPE IF EXISTS licensestatus") + op.execute("DROP TYPE IF EXISTS entity_client_or_provider") diff --git a/frontend/pnpm-workspace.yaml b/frontend/pnpm-workspace.yaml index 5bd78e01..8d1cdf3f 100644 --- a/frontend/pnpm-workspace.yaml +++ b/frontend/pnpm-workspace.yaml @@ -1,3 +1,6 @@ +packages: + - '.' + onlyBuiltDependencies: - esbuild - '@tailwindcss/oxide'