ai_v/migrations/versions/0cc7ce54ecc0_auto_sync.py

33 lines
802 B
Python
Raw Permalink Normal View History

"""auto_sync
Revision ID: 0cc7ce54ecc0
Revises: a77f97f56b61
Create Date: 2026-01-17 22:41:07.264297
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0cc7ce54ecc0'
down_revision = 'a77f97f56b61'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('generation_records', schema=None) as batch_op:
batch_op.add_column(sa.Column('cost', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('generation_records', schema=None) as batch_op:
batch_op.drop_column('cost')
# ### end Alembic commands ###