<filename>app/backend/src/couchers/migrations/versions/1c809d111871_1996_language_list_yue.py
"""1996_language_list_yue

Revision ID: 1c809d111871
Revises: <KEY>
Create Date: 2021-10-16 23:31:43.298208

"""
from alembic import op
from sqlalchemy.orm.session import Session

from couchers.resources import copy_resources_to_database

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


def upgrade():
    session = Session(bind=op.get_bind())
    copy_resources_to_database(session)
    op.execute("UPDATE languages SET name = 'Chinese (Cantonese/Yue)' WHERE code = 'yue';")
    session.commit()


def downgrade():
    pass
