29 lines
763 B
Python
29 lines
763 B
Python
"""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 ###
|