applySchema method

Future<PostgresqlMigrationResult> applySchema({
  1. required SessionExecutor executor,
  2. required SchemaDocument target,
  3. required String migrationName,
  4. bool allowWarnings = false,
})

Applies target to the database and records the migration result.

Implementation

Future<PostgresqlMigrationResult> applySchema({
  required pg.SessionExecutor executor,
  required SchemaDocument target,
  required String migrationName,
  bool allowWarnings = false,
}) {
  return runner.migrateToSchema(
    executor: executor,
    target: target,
    migrationName: migrationName,
    allowWarnings: allowWarnings,
  );
}