Skip to main content

ensure_table

Function ensure_table 

Source
pub async fn ensure_table(db: &Db) -> Result<()>
Expand description

Ensure the rustio_admin_actions table and its indexes exist. Idempotent. Depends on rustio_users existing first.

0.4.0 lifecycle additions: metadata JSONB, correlation_id, and session_id. The framework will populate these as recovery flows land in R1+; existing audit rows from 0.3.x stay valid with NULLs.