addColumn method
void
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,
- bool unique = false,
override
Implementation
@override
void 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,
bool unique = false,
}) {
_columns.add(
ColumnBlueprint(
name: name,
type: _parseColumnType(type),
nullable: nullable,
length: length is int ? length : null,
precision: _extractPrecision(type),
scale: _extractScale(type),
unsigned: unsigned,
zeroFill: zeroFill,
defaultValue: defaultValue,
comment: comment,
collation: collation,
expression: expression,
virtuality: virtuality,
autoIncrement: increment,
unique: unique,
enumValues: _extractEnumValues(type),
setValues: _extractSetValues(type),
),
);
}