Migration constructor
Migration(
- String id,
- List<
String> statements, { - required SqlDialect dialect,
- SchemaSnapshot? snapshot,
- 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,
);