From 9df3b4d53382131890111f11fcb8fc5442d3c465 Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:35:39 +0800 Subject: [PATCH] Add File --- .../versions/014_modify_chat_record.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 backend/alembic/versions/014_modify_chat_record.py diff --git a/backend/alembic/versions/014_modify_chat_record.py b/backend/alembic/versions/014_modify_chat_record.py new file mode 100644 index 0000000..ba3b6b1 --- /dev/null +++ b/backend/alembic/versions/014_modify_chat_record.py @@ -0,0 +1,29 @@ +"""modify_chat_record + +Revision ID: fde8acca6143 +Revises: bfa10ce83d73 +Create Date: 2025-06-23 16:39:39.499180 + +""" +from alembic import op +import sqlalchemy as sa +import sqlmodel.sql.sqltypes +from sqlalchemy.dialects import postgresql + +# revision identifiers, used by Alembic. +revision = 'fde8acca6143' +down_revision = 'bfa10ce83d73' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('chat_record', sa.Column('predict_data', sa.Text(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('chat_record', 'predict_data') + # ### end Alembic commands ###