mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-06 22:12:12 +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
|
from collections.abc import Sequence
|
||||||
|
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
|
from sqlalchemy.dialects.postgresql import ENUM as PG_ENUM
|
||||||
from sqlalchemy.dialects.postgresql import JSONB, UUID
|
from sqlalchemy.dialects.postgresql import JSONB, UUID
|
||||||
|
|
||||||
from alembic import op
|
from alembic import op
|
||||||
|
|
@ -59,7 +60,7 @@ def upgrade() -> None:
|
||||||
sa.Column("description", sa.String(500), nullable=True),
|
sa.Column("description", sa.String(500), nullable=True),
|
||||||
sa.Column(
|
sa.Column(
|
||||||
"provider",
|
"provider",
|
||||||
sa.Enum(
|
PG_ENUM(
|
||||||
"OPENAI",
|
"OPENAI",
|
||||||
"AZURE_OPENAI",
|
"AZURE_OPENAI",
|
||||||
"GOOGLE",
|
"GOOGLE",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue