MigrationColumn class

Constructors

MigrationColumn(ColumnType type, {bool isNullable = true, int length = 255, IndexType indexType = IndexType.standardIndex, dynamic defaultValue})
MigrationColumn.from(Column column)
factory

Properties

defaultValue → dynamic
Specifies the default values.
no setter
expression String?
A custom SQL expression to execute, instead of a named column.
finalinherited
externalReferences List<MigrationColumnReference>
no setter
hasExpression bool
Returns true if expression is not null.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
indexType → IndexType
Specifies what kind of index this column is, if any.
no setter
isNullable bool
If true, a SQL field will be nullable.
no setter
length int
Specifies the length of a VARCHAR.
finalinherited
name String?
Specifies this column name.
finalinherited
precision int
Specifies the precision of a NUMERIC or DECIMAL.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int
Specifies the scale of a NUMERIC or DECIMAL.
finalinherited
timezone String?
Specifies the timezone for temporal field.
finalinherited
type → ColumnType
Explicitly defines a SQL type for this column.
finalinherited

Methods

defaultsTo(dynamic value) MigrationColumn
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notNull() MigrationColumn
primaryKey() MigrationColumn
references(String foreignTable, String foreignKey) MigrationColumnReference
toString() String
A string representation of this object.
inherited
unique() MigrationColumn

Operators

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