things
This commit is contained in:
32
migrations/versions/d7bbffbbc931_auto_migrate.py
Normal file
32
migrations/versions/d7bbffbbc931_auto_migrate.py
Normal file
@ -0,0 +1,32 @@
|
||||
"""auto-migrate
|
||||
|
||||
Revision ID: d7bbffbbc931
|
||||
Revises:
|
||||
Create Date: 2025-06-27 09:20:35.600333
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'd7bbffbbc931'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('grow_logs', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('event_type', sa.String(length=50), nullable=False))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('grow_logs', schema=None) as batch_op:
|
||||
batch_op.drop_column('event_type')
|
||||
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user