atst/alembic/versions/b3fa1493e0a9_add_cloud_id_column_to_environments.py
Patrick Smith 2dba02e03c Add cloud_id column to environment model
When an environment is created, we'll need to create something in the
CSP and keep track of the ID of the created thing.
2019-01-07 17:30:34 -05:00

29 lines
689 B
Python

"""Add cloud_id column to environments
Revision ID: b3fa1493e0a9
Revises: 6172ac7b8b26
Create Date: 2019-01-04 14:28:59.660309
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b3fa1493e0a9'
down_revision = '6172ac7b8b26'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('environments', sa.Column('cloud_id', sa.String(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('environments', 'cloud_id')
# ### end Alembic commands ###