/**
  * @param string $documentName
  * @return void
  */
 public function designsCommand($documentName = NULL)
 {
     $this->couchDbHelper->createDatabaseIfNotExists();
     $result = $this->couchDbHelper->createOrUpdateDesignDocuments($documentName === NULL ? array() : array($documentName));
     $changesFound = FALSE;
     foreach ($result['success'] as $documentName) {
         $this->outputLine('Succesfully updated: %s', array($documentName));
         $changesFound = TRUE;
     }
     foreach ($result['error'] as $documentName => $reason) {
         $this->outputLine('Error updating %s: %s', array($documentName, $reason));
         $changesFound = TRUE;
     }
     if (!$changesFound) {
         $this->outputLine('No changes found; nothing to do.');
     }
 }
 /**
  * @Flow\AfterReturning("method(TYPO3\Flow\Command\DoctrineCommandController->migrateCommand())")
  * @param \TYPO3\Flow\Aop\JoinPointInterface $joinPoint The current join point
  * @return void
  */
 public function callMigrateCommand(\TYPO3\Flow\Aop\JoinPointInterface $joinPoint)
 {
     // TODO: Make this less magically quiet and stuff like that ;-)
     $this->couchDbHelper->createDatabaseIfNotExists();
     $this->couchDbHelper->createOrUpdateDesignDocuments(array());
 }