Migration constructor

Migration(
  1. String id,
  2. List<String> statements, {
  3. required SqlDialect dialect,
  4. SchemaSnapshot? snapshot,
  5. String? previous,
})

Builds a plan from transactional SQL statements.

Use Migration.steps for rebuilds, checked DDL, or bounded backfills.

Implementation

Migration(
  String id,
  List<String> statements, {
  required SqlDialect dialect,
  SchemaSnapshot? snapshot,
  String? previous,
}) : this.steps(
       id,
       statements.map(ExecuteSql.new).toList(),
       dialect: dialect,
       snapshot: snapshot,
       previous: previous,
     );