<filename>src/dispatch/alembic/versions/c6db1c7655db_.py
"""Adds evergreen data for documents.

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2020-11-09 13:41:27.785196

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "<KEY>"
down_revision = "<PASSWORD>"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("document", sa.Column("evergreen", sa.Boolean(), nullable=True))
    op.add_column("document", sa.Column("evergreen_last_reminder_at", sa.DateTime(), nullable=True))
    op.add_column("document", sa.Column("evergreen_owner", sa.String(), nullable=True))
    op.add_column("document", sa.Column("evergreen_reminder_interval", sa.Integer(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("document", "evergreen_reminder_interval")
    op.drop_column("document", "evergreen_owner")
    op.drop_column("document", "evergreen_last_reminder_at")
    op.drop_column("document", "evergreen")
    # ### end Alembic commands ###

<filename>src/dispatch/alembic/versions/c6db1c7655db_.py
"""Adds evergreen data for documents.

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2020-11-09 13:41:27.785196

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "<KEY>"
down_revision = "<PASSWORD>"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("document", sa.Column("evergreen", sa.Boolean(), nullable=True))
    op.add_column("document", sa.Column("evergreen_last_reminder_at", sa.DateTime(), nullable=True))
    op.add_column("document", sa.Column("evergreen_owner", sa.String(), nullable=True))
    op.add_column("document", sa.Column("evergreen_reminder_interval", sa.Integer(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("document", "evergreen_reminder_interval")
    op.drop_column("document", "evergreen_owner")
    op.drop_column("document", "evergreen_last_reminder_at")
    op.drop_column("document", "evergreen")
    # ### end Alembic commands ###

Adds evergreen data for documents.  Revision ID: <KEY> Revises: <PASSWORD> Create Date: 2020-11-09 13:41:27.785196 # revision identifiers, used by Alembic. # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ### # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ###