models: destroy groups

This commit is contained in:
Iain Learmonth 2022-04-22 13:00:39 +01:00
parent 0c349091e7
commit 6843111b04

View file

@ -0,0 +1,32 @@
"""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 ###