Skip to main content

migrate

Function migrate 

Source
pub async fn migrate(migrations_dir: &Path) -> Result<(), AppError>
Expand description

Runs every .sql file in migrations_dir that hasn’t already been applied, in filename order (hence the numeric prefix xr make:migration generates), tracking progress in a bookkeeping _migrations table - the same shape as Laravel’s own migrations table.