RawSqlMigration constructor

RawSqlMigration({
  1. required int version,
  2. required String description,
  3. String upSql = '',
  4. String? downSql,
  5. List<String>? upSqlStatements,
  6. List<String>? downSqlStatements,
})

Create a raw SQL migration

version - Migration version number description - Human-readable description upSql - Single SQL statement for up migration downSql - Single SQL statement for down migration (optional) upSqlStatements - Multiple SQL statements for up migration (alternative to upSql) downSqlStatements - Multiple SQL statements for down migration (alternative to downSql)

Implementation

RawSqlMigration({
  required int version,
  required String description,
  this.upSql = '',
  this.downSql,
  this.upSqlStatements,
  this.downSqlStatements,
}) : _version = version,
     _description = description;