Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@


# Reuse the existing Enum type
existing_enum = sa.Enum("VIP_MODEL", name="licensedresourcetype", native_enum=False)
licensed_resource_type = postgresql.ENUM(
"VIP_MODEL", name="licensedresourcetype", create_type=False
)


def upgrade():
Expand All @@ -34,7 +36,7 @@ def upgrade():
sa.Column("licensed_resource_name", sa.String(), nullable=False),
sa.Column(
"licensed_resource_type",
existing_enum, # Reuse existing Enum instead of redefining it
licensed_resource_type, # Reuse existing Enum instead of redefining it
nullable=False,
),
sa.Column(
Expand Down
Loading