apply_migration

Function apply_migration 

Source
pub async fn apply_migration(
    dialect: DBImpl,
    migration: &Migration,
    db: &Database,
    last_migration_table_name: &str,
    do_log: bool,
) -> Result<()>
Expand description

Helper method to apply one migration. Writes also to last migration table.

  • migration: &Migration: Reference to the migration to apply.
  • db: &Database: Database to apply the migration onto.
  • last_migration_table_name: &str: Name of the table to insert successful applied migrations into.