mirror of
https://github.com/logos-co/open-law.git
synced 2025-01-10 14:55:50 +00:00
33 lines
791 B
Python
33 lines
791 B
Python
"""comment_edited
|
|
|
|
Revision ID: 1dfa1f2c208f
|
|
Revises: 2ec60080de3b
|
|
Create Date: 2023-05-09 17:22:23.028408
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '1dfa1f2c208f'
|
|
down_revision = '2ec60080de3b'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('comments', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('edited', sa.Boolean(), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('comments', schema=None) as batch_op:
|
|
batch_op.drop_column('edited')
|
|
|
|
# ### end Alembic commands ###
|