dash-stack/migrations/versions/73982db0bb88_.py
kelepirci d4d5e9fd80 Provider CRUD & New OpenStack API Stuff
Create, edit, update and delete cloud providers.
Lots of new functions and hard to explaing them all

User create on provider.

Change-Id: I8d45ea14b2f62551500acf809cdb5190119548bb
2016-08-31 23:48:06 +03:00

31 lines
978 B
Python

"""empty message
Revision ID: 73982db0bb88
Revises: ad4bacc19155
Create Date: 2016-08-28 21:51:42.194149
"""
# revision identifiers, used by Alembic.
revision = '73982db0bb88'
down_revision = 'ad4bacc19155'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('providers', sa.Column('region', sa.String(length=128), nullable=True))
op.create_index(op.f('ix_providers_region'), 'providers', ['region'], unique=False)
op.drop_column('providers', 'x_subject_token')
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('providers', sa.Column('x_subject_token', mysql.TEXT(collation=u'utf8_bin'), nullable=True))
op.drop_index(op.f('ix_providers_region'), table_name='providers')
op.drop_column('providers', 'region')
### end Alembic commands ###