execute method

  1. @override
  2. @protected
Future<int> execute(
  1. CommandContext context
)
override

Implementation

@override
@protected
Future<int> execute(final CommandContext context) async
{
  const console = Console();
  final migrateAction = MigrateAction(
    env: context.env,
    password: context.password,
    migrationsPath: context.config.migrationsPath,
    migrationIdentity: argument(migrationIdentityArg),
    allowRollback: allowRollback,
    handler: const MigrationReporter(console),
    console: console,
  );
  return await migrateAction.execute();
}