33 lines
786 B
Python
33 lines
786 B
Python
"""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 ###
|