init_db

Function init_db 

Source
pub fn init_db(conn: &Connection) -> Result<()>
Expand description

Set up the database tables and run any needed migrations.

Creates the files and admins tables plus an index on expires_at. Also handles the storage_host column migration for older databases.