def METHOD_NAME():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(
        "fk_projects_vc_branches_head_commit_id",
        "projects_vc_branches",
        type_="foreignkey",
    )
    op.drop_constraint(
        "projects_vc_branches_repo_id", "projects_vc_branches", type_="foreignkey"
    )
    op.create_foreign_key(
        "projects_vc_branches_repo_id",
        "projects_vc_branches",
        "projects_vc_repos",
        ["repo_id"],
        ["id"],
        onupdate="CASCADE",
        ondelete="CASCADE",
    )
    op.create_foreign_key(
        "fk_projects_vc_branches_head_commit_id",
        "projects_vc_branches",
        "projects_vc_commits",
        ["head_commit_id"],
        ["id"],
        onupdate="CASCADE",
        ondelete="RESTRICT",
    )
    op.drop_constraint(
        "fk_projects_vc_commits_snapshot_checksum",
        "projects_vc_commits",
        type_="foreignkey",
    )
    op.drop_constraint(
        "fk_projects_vc_commits_repo_id", "projects_vc_commits", type_="foreignkey"
    )
    op.create_foreign_key(
        "fk_projects_vc_commits_repo_id",
        "projects_vc_commits",
        "projects_vc_repos",
        ["repo_id"],
        ["id"],
        onupdate="CASCADE",
        ondelete="CASCADE",
    )
    op.create_foreign_key(
        "fk_projects_vc_commits_snapshot_checksum",
        "projects_vc_commits",
        "projects_vc_snapshots",
        ["snapshot_checksum"],
        ["checksum"],
        onupdate="CASCADE",
        ondelete="RESTRICT",
    )
    op.drop_constraint(
        "fk_projects_vc_heads_head_branch_id", "projects_vc_heads", type_="foreignkey"
    )
    op.drop_constraint(
        "projects_vc_branches_repo_id", "projects_vc_heads", type_="foreignkey"
    )
    op.create_foreign_key(
        "fk_projects_vc_heads_head_branch_id",
        "projects_vc_heads",
        "projects_vc_branches",
        ["head_branch_id"],
        ["id"],
        onupdate="CASCADE",
        ondelete="CASCADE",
    )
    op.create_foreign_key(
        "projects_vc_branches_repo_id",
        "projects_vc_heads",
        "projects_vc_repos",
        ["repo_id"],
        ["id"],
        onupdate="CASCADE",
        ondelete="CASCADE",
    )
    op.drop_constraint(
        "fk_projects_vc_repos_project_uuid", "projects_vc_repos", type_="foreignkey"
    )
    op.create_foreign_key(
        "fk_projects_vc_repos_project_uuid",
        "projects_vc_repos",
        "projects",
        ["project_uuid"],
        ["uuid"],
        onupdate="CASCADE",
        ondelete="CASCADE",
    )
    op.drop_constraint(
        "fk_projects_vc_tags_commit_id", "projects_vc_tags", type_="foreignkey"
    )
    op.drop_constraint(
        "fk_projects_vc_tags_repo_id", "projects_vc_tags", type_="foreignkey"
    )
    op.create_foreign_key(
        "fk_projects_vc_tags_commit_id",
        "projects_vc_tags",
        "projects_vc_commits",
        ["commit_id"],
        ["id"],
        onupdate="CASCADE",
        ondelete="CASCADE",
    )
    op.create_foreign_key(
        "fk_projects_vc_tags_repo_id",
        "projects_vc_tags",
        "projects_vc_repos",
        ["repo_id"],
        ["id"],
        onupdate="CASCADE",
        ondelete="CASCADE",
    )
    # ### end Alembic commands ###