toCommand method

  1. @override
MigrationCommand toCommand({
  1. bool shouldDrop = false,
})

Generated Dart code to include in a migrations file.

Implementation

@override
MigrationCommand toCommand({bool shouldDrop = false}) =>
    shouldDrop ? DropTable(name) : InsertTable(name);