Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Migrate / RollBackCommand.php
index 1d0b3a6d90466626b5f5246e024b8828edc8302c..91a2fe202a362763b11a99e826f7e3cfd36b8183 100644 (file)
@@ -58,7 +58,7 @@ class RollBackCommand extends Command
             ->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')
             );
@@ -75,7 +75,7 @@ class RollBackCommand extends Command
         $migrations_list = array_keys($this->getMigrations($version_tag));
         // If migrations weren't provided finish execution
         if (empty($migration_id)) {
-            return;
+            return 1;
         }
 
 
@@ -129,6 +129,8 @@ class RollBackCommand extends Command
                 }
             }
         }
+
+        return 0;
     }
 
     /**