pub async fn insert(
conn: &mut PgConnection,
snapshot: &EntitySnapshot,
change_reason: EntityHistoryChangeReason,
author: HistoryAuthor,
restored_from_id: Option<Uuid>,
) -> ModelResult<Uuid>Expand description
Records snapshot as a new history row. Only chapters, modules and course settings have
history; the database refuses other entity types.