64c257f78218_page_and_file_add_private_boolean.py 623 B

1234567891011121314151617181920212223242526
  1. """page_and_file_add_private_boolean
  2. Revision ID: 64c257f78218
  3. Revises: d4774c761a71
  4. Create Date: 2019-02-26 21:09:02.780265
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '64c257f78218'
  10. down_revision = 'd4774c761a71'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.add_column('file', sa.Column('private', sa.Boolean(), server_default='f', nullable=True))
  15. op.add_column('page', sa.Column('private', sa.Boolean(), server_default='f', nullable=True))
  16. def downgrade():
  17. op.drop_column('page', 'private')
  18. op.drop_column('file', 'private')