From e93602dbf68696a358e0ed35f3b9f41986480b31 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Mon, 20 Feb 2023 12:34:06 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8=20?= =?UTF-8?q?PostgreSQL=20=E6=97=B6=E8=BF=81=E7=A7=BB=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99=20(#200)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nonebot_bison/config/migrations/4a46ba54a3f3_alter_type.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/nonebot_bison/config/migrations/4a46ba54a3f3_alter_type.py b/src/plugins/nonebot_bison/config/migrations/4a46ba54a3f3_alter_type.py index 0c3a602..2acbefa 100644 --- a/src/plugins/nonebot_bison/config/migrations/4a46ba54a3f3_alter_type.py +++ b/src/plugins/nonebot_bison/config/migrations/4a46ba54a3f3_alter_type.py @@ -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 ###