->addArgument('migration-ids', InputArgument::IS_ARRAY, $this->trans('commands.migrate.rollback.arguments.id'))
->addOption(
'source-base_path',
- '',
+ null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.migrate.setup.options.source-base_path')
);
$migrations_list = array_keys($this->getMigrations($version_tag));
// If migrations weren't provided finish execution
if (empty($migration_id)) {
- return;
+ return 1;
}
}
}
}
+
+ return 0;
}
/**