Migration class abstract

Constructors

Migration({required int version, required List<MigrationCommand> up, required List<MigrationCommand> down})
const

Properties

down List<MigrationCommand>
final
downStatement String
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statement String
no setter
up List<MigrationCommand>
final
upStatement String
no setter
version int
Order to run; should be unique and sequential with other Migrations
final

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.
override

Static Methods

fromDartPrimitive(Type type) Column
Convert native Dart to Column
generate(List<MigrationCommand> commands, int version) String
ofDefinition(Column definition) String
Convert Column to SQLite data types
toDartPrimitive(Column definition) Type
Convert Column to native Dart