6a8ca213d503_drop_project_read_only_column.py 453 B

1234567891011121314151617181920212223
  1. """Drop project read_only column
  2. Revision ID: 6a8ca213d503
  3. Revises: 5df8314dfc13
  4. Create Date: 2024-04-24 21:49:11.394451
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '6a8ca213d503'
  10. down_revision = '5df8314dfc13'
  11. def upgrade():
  12. op.drop_column('projects', 'read_only')
  13. def downgrade():
  14. op.add_column('projects', sa.Column('read_only', sa.Boolean(), default=True, nullable=False))