SqlMigration class

Describes a migration using an SQL statement.

SqlMigration will execute the given migration sql via sqflite Database.execute() method.

Inheritance

Constructors

SqlMigration(String sql, {String? reverseSql, MigrationErrorStrategy? errorStrategy, MigrationErrorStrategy? reverseErrorStrategy})
Construct a migration that will execute sql during upgrade (and reverseSql during downgrade, if provided).

Properties

forward Operation
finalinherited
hashCode int
The hash code for this object.
no setterinherited
reverse Operation
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited