<reponame>patxiworks/kingfisher<filename>ocdskingfisher/maindatabase/migrations/versions/479219fa5c98_not_null.py
"""not-null

Revision ID: 479219fa5c98
Revises: <PASSWORD>
Create Date: 2018-07-18 13:47:25.390348

"""
from alembic import op


# revision identifiers, used by Alembic.
revision = '479219fa5c98'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    op.alter_column('release_check', 'release_id', nullable=False)
    op.alter_column('record_check', 'record_id', nullable=False)


def downgrade():
    op.alter_column('release_check', 'release_id', nullable=True)
    op.alter_column('record_check', 'record_id', nullable=True)

"""not-null

Revision ID: 479219fa5c98
Revises: <PASSWORD>
Create Date: 2018-07-18 13:47:25.390348

"""
from alembic import op


# revision identifiers, used by Alembic.
revision = '479219fa5c98'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    op.alter_column('release_check', 'release_id', nullable=False)
    op.alter_column('record_check', 'record_id', nullable=False)


def downgrade():
    op.alter_column('release_check', 'release_id', nullable=True)
    op.alter_column('record_check', 'record_id', nullable=True)
not-null  Revision ID: 479219fa5c98 Revises: <PASSWORD> Create Date: 2018-07-18 13:47:25.390348 # revision identifiers, used by Alembic.