mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +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),
|
||||
type_=sa.JSON(),
|
||||
existing_nullable=True,
|
||||
postgresql_using="categories::json",
|
||||
)
|
||||
batch_op.alter_column(
|
||||
"tags",
|
||||
existing_type=sa.VARCHAR(length=1024),
|
||||
type_=sa.JSON(),
|
||||
existing_nullable=True,
|
||||
postgresql_using="tags::json",
|
||||
)
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
Loading…
x
Reference in New Issue
Block a user