You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
860 B
Python
32 lines
860 B
Python
5 years ago
|
"""comment deletion and visibility
|
||
|
|
||
|
Revision ID: 2534cc5059a5
|
||
|
Revises: 4b6c6a23c639
|
||
|
Create Date: 2020-03-20 23:56:02.150560
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
import sqlalchemy_utc
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '2534cc5059a5'
|
||
|
down_revision = '4b6c6a23c639'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('comment', sa.Column('visible', sa.Boolean(), nullable=True))
|
||
|
op.drop_column('comment', 'delete_reason')
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('comment', sa.Column('delete_reason', sa.VARCHAR(length=512), autoincrement=False, nullable=True))
|
||
|
op.drop_column('comment', 'visible')
|
||
|
# ### end Alembic commands ###
|