Skip to main content

ensure_exists

pub async fn ensure_exists(
    conn: &mut PgConnection,
    course_module_id: Uuid,
) -> ModelResult<()>
Expand description

Gives the module a live configuration row, which the pause and config-check writers update.

Resurrects a soft-deleted row rather than inserting beside it: ON CONFLICT can only infer against uq_course_module_suotar_configurations, which is keyed on course_module_id alone.