This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions/82297d834ad_add_us_west_location.py

29 lines
572 B
Python
Raw Normal View History

2014-08-15 19:02:26 +00:00
"""add US West location
Revision ID: 82297d834ad
Revises: 47670cbeced
Create Date: 2014-08-15 13:35:23.834079
"""
# revision identifiers, used by Alembic.
revision = '82297d834ad'
down_revision = '47670cbeced'
from alembic import op
import sqlalchemy as sa
def upgrade(tables):
op.bulk_insert(tables.imagestoragelocation,
2014-08-15 19:02:26 +00:00
[
{'id':8, 'name':'s3_us_west_1'},
])
def downgrade(tables):
2014-08-15 19:02:26 +00:00
op.execute(
(tables.imagestoragelocation.delete()
.where(tables.imagestoragelocation.c.name == op.inline_literal('s3_us_west_1')))
2014-08-15 19:02:26 +00:00
)