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

@@ -1,4 +1,4 @@
"""add Environment claimed_at
"""add Environment claimed_until
Revision ID: 691b04ecd85e
Revises: cfab6c8243cb
@@ -18,11 +18,11 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('environments', sa.Column('claimed_at', sa.TIMESTAMP(timezone=True), nullable=True))
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_at')
op.drop_column('environments', 'claimed_until')
# ### end Alembic commands ###