5df8314dfc13_drop_repospanner_region_column.py 454 B

1234567891011121314151617181920212223
  1. """Drop repoSpanner region column
  2. Revision ID: 5df8314dfc13
  3. Revises: c0bffa4e8fbc
  4. Create Date: 2024-01-21 23:07:25.610148
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '5df8314dfc13'
  10. down_revision = 'c0bffa4e8fbc'
  11. def upgrade():
  12. op.drop_column('projects', 'repospanner_region')
  13. def downgrade():
  14. op.add_column('projects', sa.Column('repospanner_region', sa.Text(), nullable=True))