pub async fn apply_migration(
db: &Database,
migration: &Migration,
last_migration_table_name: &str,
) -> Result<(), ApplyMigrationError>Expand description
Applies a single Migration, updating the “last migration table”.
This function will start a transaction which is rolled back if any of the migration’s operations failed.
This function won’t check the databases current state. It will simply try to apply the migration.