getMigrationStatus() public method

Returns the current migration status formatted as plain text.
public getMigrationStatus ( boolean $showMigrations = false, boolean $showDescriptions = false ) : string
$showMigrations boolean
$showDescriptions boolean
return string
Esempio n. 1
0
 /**
  * Show the current migration status
  *
  * Displays the migration configuration as well as the number of
  * available, executed and pending migrations.
  *
  * @param boolean $showMigrations Output a list of all migrations and their status
  * @param boolean $showDescriptions Show descriptions for the migrations (enables versions display)
  * @return void
  * @see neos.flow:doctrine:migrate
  * @see neos.flow:doctrine:migrationexecute
  * @see neos.flow:doctrine:migrationgenerate
  * @see neos.flow:doctrine:migrationversion
  */
 public function migrationStatusCommand($showMigrations = false, $showDescriptions = false)
 {
     if (!$this->isDatabaseConfigured()) {
         $this->outputLine('Doctrine migration status not available, the driver and host backend options are not set in /Configuration/Settings.yaml.');
         $this->quit(1);
     }
     if ($showDescriptions) {
         $showMigrations = true;
     }
     $this->outputLine($this->doctrineService->getMigrationStatus($showMigrations, $showDescriptions));
 }