mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-08 20:25:19 +02:00
fix: update ENUM import for PostgreSQL compatibility in image generations table migration
This commit is contained in:
parent
0d031cb2c2
commit
7ce6493caa
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ Changes:
|
|||
from collections.abc import Sequence
|
||||
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects.postgresql import ENUM as PG_ENUM
|
||||
from sqlalchemy.dialects.postgresql import JSONB, UUID
|
||||
|
||||
from alembic import op
|
||||
|
|
@ -59,7 +60,7 @@ def upgrade() -> None:
|
|||
sa.Column("description", sa.String(500), nullable=True),
|
||||
sa.Column(
|
||||
"provider",
|
||||
sa.Enum(
|
||||
PG_ENUM(
|
||||
"OPENAI",
|
||||
"AZURE_OPENAI",
|
||||
"GOOGLE",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue