32 lines
795 B
Python
32 lines
795 B
Python
"""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 ###
|