Migration class

Constructors

Migration()

Properties

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

Methods

addColumn(String name, String type, {bool nullable = false, dynamic length, bool unsigned = false, bool zeroFill = false, dynamic defaultValue, String? comment, String? collation, String? expression, String? virtuality, bool increment = false}) → void
alterColumn(String table, Function callback, {String beforeColumn = '', String afterColumn = ''}) Future<void>
bigIncrements(String name, {bool nullable = false, bool zeroFill = false, int? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
bigInt(String name, {bool nullable = false, int length = 20, bool unsigned = false, bool zeroFill = false, int? defaultValue, String? comment, String? collation, String? expression, String? virtuality, bool increment = false}) → void
binary(String name, {bool nullable = false, int length = 50, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
bit(String name, {bool nullable = false, bool unsigned = false, bool zeroFill = false, int? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
blob(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
char(String name, {bool nullable = false, int length = 50, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
createTable(String name, Function callback) Future<void>
createTableNotExists(String name, Function callback) Future<void>
date(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
dateTime(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
decimal(String name, {bool nullable = false, int? precision, int? scale, bool unsigned = false, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
double(String name, {bool nullable = false, int? precision, int? scale, bool unsigned = false, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
down() Future<void>
drop(String name) Future<void>
dropIfExists(String name) Future<void>
enumType(String name, List<String> enumValues, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
float(String name, {bool nullable = false, int? precision, int? scale, bool unsigned = false, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
foreign(String columnName, String referencesTable, String referencesColumn, {bool constrained = true, String onUpdate = 'NO ACTION', String onDelete = 'NO ACTION'}) → void
geometry(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
geometryCollection(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
id() → void
index(ColumnIndex type, String name, List<String> columns) → void
integer(String name, {bool nullable = false, int length = 10, bool unsigned = false, bool zeroFill = false, int? defaultValue, String? comment, String? collation, String? expression, String? virtuality, bool increment = false}) → void
json(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
lineString(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
longBlob(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
longText(String name, {bool nullable = false, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
mediumBlob(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
mediumInt(String name, {bool nullable = false, int length = 10, bool unsigned = false, bool zeroFill = false, int? defaultValue, String? comment, String? collation, String? expression, String? virtuality, bool increment = false}) → void
mediumText(String name, {bool nullable = false, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
multiLineString(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
multiPoint(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
multiPolygon(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
point(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
polygon(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
primary(String columnName, [String algorithm = 'BTREE']) → void
setType(String name, List<String> setValues, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
smallInt(String name, {bool nullable = false, int length = 1, bool unsigned = false, bool zeroFill = false, int? defaultValue, String? comment, String? collation, String? expression, String? virtuality, bool increment = false}) → void
softDeletes(String name) → void
string(String name, {bool nullable = false, int length = 255, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
text(String name, {bool nullable = false, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
time(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
timeStamp(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
timeStamps() → void
tinyBlob(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
tinyInt(String name, {bool nullable = false, int length = 1, bool unsigned = false, bool zeroFill = false, int? defaultValue, String? comment, String? collation, String? expression, String? virtuality, bool increment = false}) → void
tinyText(String name, {bool nullable = false, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
toString() String
A string representation of this object.
inherited
up() Future<void>
uuid(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
varBinary(String name, {bool nullable = false, int length = 50, bool zeroFill = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void
year(String name, {bool nullable = false, String? defaultValue, String? comment, String? collation, String? expression, String? virtuality}) → void

Operators

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