19b67f4b9fe4_add_repospanner_region_column.py 452 B

12345678910111213141516171819202122
  1. """Add repoSpanner region column
  2. Revision ID: 19b67f4b9fe4
  3. Revises: ef98dcb838e4
  4. Create Date: 2018-09-08 13:27:31.978954
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '19b67f4b9fe4'
  8. down_revision = 'ef98dcb838e4'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. op.add_column('projects', sa.Column('repospanner_region', sa.Text(), nullable=True))
  13. def downgrade():
  14. op.drop_column('projects', 'repospanner_region')