"""ensure latest_version_id is nullable

Revision ID: 3bc7bbed1ec6
Revises: 5c67abd3b371
Create Date: 2024-05-04 17:15:49.302462

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '3bc7bbed1ec6'
down_revision = '5c67abd3b371'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('document_language', 'latest_version_id',
               existing_type=sa.INTEGER(),
               nullable=True)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('document_language', 'latest_version_id',
               existing_type=sa.INTEGER(),
               nullable=False)
    # ### end Alembic commands ###
