You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/sprinkles/core/src/Bakery/MigrateCleanCommand.php
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,9 @@ protected function configure()
31
31
{
32
32
$this->setName('migrate:clean')
33
33
->setDescription('Remove stale migrations from the database.')
34
-
->addOption('database', 'd', InputOption::VALUE_REQUIRED, 'The database connection to use.');
34
+
->setHelp('Removes stale migrations, which are simply migration class files that have been removed from the Filesystem. E.g. if you run a migration and then delete the migration class file prior to running `down()` for that migration it becomes stale. If a migration is a dependency of another migration you probably want to try to restore the files instead of running this command to avoid further issues.')
35
+
->addOption('database', 'd', InputOption::VALUE_REQUIRED, 'The database connection to use.')
36
+
->addOption('force', 'f', InputOption::VALUE_NONE, 'Do not prompt for confirmation.');
35
37
}
36
38
37
39
/**
@@ -60,11 +62,13 @@ protected function execute(InputInterface $input, OutputInterface $output)
0 commit comments