mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 23:32:27 -05:00
29 lines
734 B
Python
29 lines
734 B
Python
"""
|
|
|
|
Revision ID: 0245_archived_flag_jobs
|
|
Revises: 0242_template_folders
|
|
Create Date: 2018-11-22 16:32:01.105803
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
revision = "0245_archived_flag_jobs"
|
|
down_revision = "0242_template_folders"
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column("jobs", sa.Column("archived", sa.Boolean(), nullable=True))
|
|
op.execute("update jobs set archived = false")
|
|
op.alter_column("jobs", "archived", nullable=False, server_default=sa.false())
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column("jobs", "archived")
|
|
# ### end Alembic commands ###
|