Fixed linter warnings
This commit is contained in:
parent
a6681dbdab
commit
a5f4e4ff7a
2 changed files with 8 additions and 8 deletions
|
@ -46,7 +46,7 @@ abstract class MariaDbGenerator {
|
|||
}
|
||||
|
||||
for (var ref in column.externalReferences) {
|
||||
buf.write(' ' + compileReference(ref));
|
||||
buf.write(' ${compileReference(ref)}');
|
||||
}
|
||||
|
||||
return buf.toString();
|
||||
|
@ -54,7 +54,7 @@ abstract class MariaDbGenerator {
|
|||
|
||||
static String compileReference(MigrationColumnReference ref) {
|
||||
var buf = StringBuffer('REFERENCES ${ref.foreignTable}(${ref.foreignKey})');
|
||||
if (ref.behavior != null) buf.write(' ' + ref.behavior!);
|
||||
if (ref.behavior != null) buf.write(' ${ref.behavior!}');
|
||||
return buf.toString();
|
||||
}
|
||||
}
|
||||
|
@ -147,8 +147,8 @@ class MariaDbAlterTable extends Table implements MutableTable {
|
|||
|
||||
@override
|
||||
void changeColumnType(String name, ColumnType type, {int length = 256}) {
|
||||
_stack.add('ALTER COLUMN $name TYPE ' +
|
||||
MariaDbGenerator.columnType(MigrationColumn(type, length: length)));
|
||||
_stack.add(
|
||||
'ALTER COLUMN $name TYPE ${MariaDbGenerator.columnType(MigrationColumn(type, length: length))}');
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -46,7 +46,7 @@ abstract class MySqlGenerator {
|
|||
}
|
||||
|
||||
for (var ref in column.externalReferences) {
|
||||
buf.write(' ' + compileReference(ref));
|
||||
buf.write(' ${compileReference(ref)}');
|
||||
}
|
||||
|
||||
return buf.toString();
|
||||
|
@ -54,7 +54,7 @@ abstract class MySqlGenerator {
|
|||
|
||||
static String compileReference(MigrationColumnReference ref) {
|
||||
var buf = StringBuffer('REFERENCES ${ref.foreignTable}(${ref.foreignKey})');
|
||||
if (ref.behavior != null) buf.write(' ' + ref.behavior!);
|
||||
if (ref.behavior != null) buf.write(' ${ref.behavior!}');
|
||||
return buf.toString();
|
||||
}
|
||||
}
|
||||
|
@ -147,8 +147,8 @@ class MysqlAlterTable extends Table implements MutableTable {
|
|||
|
||||
@override
|
||||
void changeColumnType(String name, ColumnType type, {int length = 256}) {
|
||||
_stack.add('ALTER COLUMN $name TYPE ' +
|
||||
MySqlGenerator.columnType(MigrationColumn(type, length: length)));
|
||||
_stack.add(
|
||||
'ALTER COLUMN $name TYPE ${MySqlGenerator.columnType(MigrationColumn(type, length: length))}');
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue