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 — uses CREATE TABLE IF NOT EXISTS + CREATE INDEX IF NOT EXISTS. Depends on rustio_users existing first (the FK target); callers should run auth::init_user_tables before this.