Add File
This commit is contained in:
33
backend/alembic/versions/031_modify_chat_record.py
Normal file
33
backend/alembic/versions/031_modify_chat_record.py
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
"""031_modify_chat_record
|
||||||
|
|
||||||
|
Revision ID: bd2ed188b5bd
|
||||||
|
Revises: c1d7ac00b3a8
|
||||||
|
Create Date: 2025-07-21 17:27:55.985821
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
import sqlmodel.sql.sqltypes
|
||||||
|
from sqlalchemy.dialects import postgresql
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = 'bd2ed188b5bd'
|
||||||
|
down_revision = 'c1d7ac00b3a8'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.alter_column('chat_record', 'engine_type',
|
||||||
|
existing_type=sa.VARCHAR(length=64),
|
||||||
|
nullable=True)
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.alter_column('chat_record', 'engine_type',
|
||||||
|
existing_type=sa.VARCHAR(length=64),
|
||||||
|
nullable=False)
|
||||||
|
# ### end Alembic commands ###
|
||||||
Reference in New Issue
Block a user