applySchema method

SqliteMigrationResult applySchema({
  1. required Database database,
  2. required SchemaDocument target,
  3. required String migrationName,
  4. bool allowWarnings = false,
})

Applies target to the database and records the migration result.

Implementation

SqliteMigrationResult applySchema({
  required sqlite.Database database,
  required SchemaDocument target,
  required String migrationName,
  bool allowWarnings = false,
}) {
  return runner.migrateToSchema(
    database: database,
    target: target,
    migrationName: migrationName,
    allowWarnings: allowWarnings,
  );
}