mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-08 12:53:00 +08:00
🐛 修复使用 PostgreSQL 时迁移脚本的报错 (#200)
This commit is contained in:
parent
609340ed92
commit
e93602dbf6
@ -23,12 +23,14 @@ def upgrade():
|
|||||||
existing_type=sa.VARCHAR(length=1024),
|
existing_type=sa.VARCHAR(length=1024),
|
||||||
type_=sa.JSON(),
|
type_=sa.JSON(),
|
||||||
existing_nullable=True,
|
existing_nullable=True,
|
||||||
|
postgresql_using="categories::json",
|
||||||
)
|
)
|
||||||
batch_op.alter_column(
|
batch_op.alter_column(
|
||||||
"tags",
|
"tags",
|
||||||
existing_type=sa.VARCHAR(length=1024),
|
existing_type=sa.VARCHAR(length=1024),
|
||||||
type_=sa.JSON(),
|
type_=sa.JSON(),
|
||||||
existing_nullable=True,
|
existing_nullable=True,
|
||||||
|
postgresql_using="tags::json",
|
||||||
)
|
)
|
||||||
|
|
||||||
# ### end Alembic commands ###
|
# ### end Alembic commands ###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user