majuna/migrations/versions/c83bdf6bf959_group_destruction.py

33 lines
795 B
Python
Raw Normal View History

2022-04-22 13:00:39 +01:00
"""group destruction
Revision ID: c83bdf6bf959
Revises: 59c9a5185e88
Create Date: 2022-04-22 12:52:00.715824
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c83bdf6bf959'
down_revision = '59c9a5185e88'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('group', schema=None) as batch_op:
batch_op.add_column(sa.Column('destroyed', sa.DateTime(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('group', schema=None) as batch_op:
batch_op.drop_column('destroyed')
# ### end Alembic commands ###