models: destroy groups
This commit is contained in:
parent
0c349091e7
commit
6843111b04
1 changed files with 32 additions and 0 deletions
32
migrations/versions/c83bdf6bf959_group_destruction.py
Normal file
32
migrations/versions/c83bdf6bf959_group_destruction.py
Normal 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 ###
|
Loading…
Add table
Add a link
Reference in a new issue