Add migrations.yml in order to call correctly migrations command lines.

1.10.x
Julio Montoya 11 years ago
parent 05a94b3df5
commit 5aee71c6f9
  1. 4
      app/config/migrations.yml
  2. 5
      cli-config.php

@ -0,0 +1,4 @@
name: Chamilo Migrations
migrations_namespace: Chamilo\CoreBundle\Migrations\Schema\V110
table_name: version
migrations_directory: src/Chamilo/CoreBundle/Migrations/Schema/V110

@ -37,5 +37,8 @@ $dbParams = array(
$database->connect($dbParams, realpath(__DIR__).'/', realpath(__DIR__).'/'); $database->connect($dbParams, realpath(__DIR__).'/', realpath(__DIR__).'/');
$entityManager = $database->getManager(); $entityManager = $database->getManager();
return ConsoleRunner::createHelperSet($entityManager); $helperSet = ConsoleRunner::createHelperSet($entityManager);
$dialogHelper = new Symfony\Component\Console\Helper\DialogHelper();
$helperSet->set($dialogHelper);
return $helperSet;

Loading…
Cancel
Save