From ce1f1bbedbc8c99a5e2d65f5041c74115765687a Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Sun, 8 Sep 2024 18:12:00 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=8F=88=E6=9D=A5=E6=94=B9?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E4=BA=86(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_bison/config/db_model.py | 2 +- ...b8481bdde_add_cookie.py => be215495b122_add_cookie.py} | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename nonebot_bison/config/migrations/{fc2b8481bdde_add_cookie.py => be215495b122_add_cookie.py} (92%) diff --git a/nonebot_bison/config/db_model.py b/nonebot_bison/config/db_model.py index 590f978..fcd33bc 100644 --- a/nonebot_bison/config/db_model.py +++ b/nonebot_bison/config/db_model.py @@ -72,7 +72,7 @@ class Subscribe(Model): class Cookie(Model): id: Mapped[int] = mapped_column(primary_key=True) - platform_name: Mapped[str] = mapped_column(String(20)) + site_name: Mapped[str] = mapped_column(String(100)) content: Mapped[str] = mapped_column(String(1024)) # 最后使用的时刻 last_usage: Mapped[datetime.datetime] = mapped_column(DateTime, default=datetime.datetime(1970, 1, 1)) diff --git a/nonebot_bison/config/migrations/fc2b8481bdde_add_cookie.py b/nonebot_bison/config/migrations/be215495b122_add_cookie.py similarity index 92% rename from nonebot_bison/config/migrations/fc2b8481bdde_add_cookie.py rename to nonebot_bison/config/migrations/be215495b122_add_cookie.py index b296ecf..87e7bb1 100644 --- a/nonebot_bison/config/migrations/fc2b8481bdde_add_cookie.py +++ b/nonebot_bison/config/migrations/be215495b122_add_cookie.py @@ -1,8 +1,8 @@ """empty message -Revision ID: fc2b8481bdde +Revision ID: be215495b122 Revises: f9baef347cc8 -Create Date: 2024-09-05 19:31:59.366754 +Create Date: 2024-09-08 18:12:43.540818 """ @@ -12,7 +12,7 @@ from sqlalchemy import Text from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. -revision = "fc2b8481bdde" +revision = "be215495b122" down_revision = "f9baef347cc8" branch_labels = None depends_on = None @@ -23,7 +23,7 @@ def upgrade() -> None: op.create_table( "nonebot_bison_cookie", sa.Column("id", sa.Integer(), nullable=False), - sa.Column("platform_name", sa.String(length=20), nullable=False), + sa.Column("site_name", sa.String(length=100), nullable=False), sa.Column("content", sa.String(length=1024), nullable=False), sa.Column("last_usage", sa.DateTime(), nullable=False), sa.Column("status", sa.String(length=20), nullable=False),