Add environment_roles.cloud_id and update query for finding pending

roles.
This commit is contained in:
dandds
2020-02-05 13:48:59 -05:00
parent cdf6a469ed
commit 7c7dd08827
4 changed files with 70 additions and 5 deletions

View File

@@ -0,0 +1,30 @@
"""change to environment_roles.cloud_Id
Revision ID: 418b52c1cedf
Revises: 17da2a475429
Create Date: 2020-02-05 13:40:37.870183
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '418b52c1cedf' # pragma: allowlist secret
down_revision = '17da2a475429' # pragma: allowlist secret
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('environment_roles', sa.Column('cloud_id', sa.String(), nullable=True))
op.drop_column('environment_roles', 'csp_user_id')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('environment_roles', sa.Column('csp_user_id', sa.VARCHAR(), autoincrement=False, nullable=True))
op.drop_column('environment_roles', 'cloud_id')
# ### end Alembic commands ###