def METHOD_NAME():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "output_file",
        sa.Column(
            "uploaded_movie_url",
            sa.VARCHAR(length=600),
            autoincrement=False,
            nullable=True,
        ),
    )
    op.add_column(
        "output_file",
        sa.Column(
            "uploaded_movie_name",
            sa.VARCHAR(length=150),
            autoincrement=False,
            nullable=True,
        ),
    )
    op.drop_constraint(None, "output_file", type_="foreignkey")
    op.drop_constraint("output_file_uc", "output_file", type_="unique")
    op.create_unique_constraint(
        "output_file_uc",
        "output_file",
        [
            "name",
            "entity_id",
            "output_type_id",
            "task_type_id",
            "representation",
            "revision",
        ],
    )
    op.drop_column("output_file", "temporal_entity_id")
    op.drop_constraint(None, "asset_instance", type_="foreignkey")
    op.create_index(
        "ix_asset_instance_entity_type_id",
        "asset_instance",
        ["entity_type_id"],
        unique=False,
    )
    op.create_index(
        "ix_asset_instance_entity_id",
        "asset_instance",
        ["entity_id"],
        unique=False,
    )
    op.drop_constraint("asset_instance_uc", "asset_instance", type_="unique")
    op.create_unique_constraint(
        "asset_instance_uc",
        "asset_instance",
        ["asset_id", "entity_id", "number"],
    )
    op.drop_constraint(
        "asset_instance_name_uc", "asset_instance", type_="unique"
    )
    op.create_unique_constraint(
        "asset_instance_name_uc", "asset_instance", ["entity_id", "name"]
    )
    op.drop_index(
        op.f("ix_asset_instance_scene_id"), table_name="asset_instance"
    )
    op.alter_column(
        "asset_instance",
        "entity_type_id",
        existing_type=postgresql.UUID(),
        nullable=False,
    )
    op.alter_column(
        "asset_instance",
        "entity_id",
        existing_type=postgresql.UUID(),
        nullable=False,
    )
    op.drop_column("asset_instance", "scene_id")
    op.drop_table("asset_instance_link")
    # ### end Alembic commands ###