"""initial migration Revision ID: 5569d39a87cf Revises: Create Date: 2024-01-04 13:44:40.811421 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5569d39a87cf' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('event', schema=None) as batch_op: batch_op.add_column(sa.Column('title', sa.String(length=100), nullable=False)) batch_op.add_column(sa.Column('description', sa.String(length=200), nullable=True)) batch_op.add_column(sa.Column('location', sa.String(length=100), nullable=True)) batch_op.add_column(sa.Column('deleted', sa.Boolean(), nullable=True)) batch_op.add_column(sa.Column('duedate', sa.DateTime(), nullable=True)) batch_op.add_column(sa.Column('created_at', sa.DateTime(), nullable=True)) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('event', schema=None) as batch_op: batch_op.drop_column('created_at') batch_op.drop_column('duedate') batch_op.drop_column('deleted') batch_op.drop_column('location') batch_op.drop_column('description') batch_op.drop_column('title') # ### end Alembic commands ###