Squash migrations related to env role provisioning

This commit is contained in:
richard-dds 2019-09-23 10:44:37 -04:00
parent 4eee06ba44
commit f523db4d2d
2 changed files with 3 additions and 29 deletions

View File

@ -1,28 +0,0 @@
"""add environment_role status
Revision ID: 4477b211a07c
Revises: e3d93f9caba7
Create Date: 2019-09-20 11:04:10.961311
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '4477b211a07c' # pragma: allowlist secret
down_revision = 'e3d93f9caba7' # 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('status', sa.Enum('PENDING', 'COMPLETED', 'PENDING_DELETE', name='status', native_enum=False), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('environment_roles', 'status')
# ### end Alembic commands ###

View File

@ -1,4 +1,4 @@
"""add environment_role csp fields
"""add environment_role provisioning fields
Revision ID: e3d93f9caba7
Revises: 691b04ecd85e
@ -20,6 +20,7 @@ def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('environment_roles', sa.Column('claimed_until', sa.TIMESTAMP(timezone=True), nullable=True))
op.add_column('environment_roles', sa.Column('csp_user_id', sa.String(), nullable=True))
op.add_column('environment_roles', sa.Column('status', sa.Enum('PENDING', 'COMPLETED', 'PENDING_DELETE', name='status', native_enum=False), nullable=True))
# ### end Alembic commands ###
@ -27,4 +28,5 @@ def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('environment_roles', 'csp_user_id')
op.drop_column('environment_roles', 'claimed_until')
op.drop_column('environment_roles', 'status')
# ### end Alembic commands ###