Claim resource only temporarily

This commit is contained in:
richard-dds
2019-09-17 11:03:33 -04:00
parent 945debe6ee
commit abeadee3f3
4 changed files with 20 additions and 11 deletions

View File

@@ -0,0 +1,28 @@
"""add Environment claimed_until
Revision ID: 691b04ecd85e
Revises: cfab6c8243cb
Create Date: 2019-09-13 11:51:24.677399
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '691b04ecd85e' # pragma: allowlist secret
down_revision = '502e79c55d2d' # pragma: allowlist secret
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('environments', sa.Column('claimed_until', sa.TIMESTAMP(timezone=True), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('environments', 'claimed_until')
# ### end Alembic commands ###