|
@@ -1,6 +1,6 @@
|
|
|
<?php
|
|
|
|
|
|
-namespace Migrations;
|
|
|
+namespace MigrationsBundle;
|
|
|
|
|
|
use Doctrine\DBAL\Migrations\AbstractMigration;
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
@@ -210,7 +210,17 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
|
|
|
// reemplazo los valores que poseen import
|
|
|
$value = $this->replaceImportsValue($dir, $value);
|
|
|
|
|
|
- // creo los insert
|
|
|
+ // lo hago de esta forma para que se ejecuten de acuerdo a como se escribe el yaml.
|
|
|
+ //foreach ($value as $key => $val) {
|
|
|
+ // $this->setLine(0);
|
|
|
+ // if (strtoupper($key) === MigrationsBase::INSERT) {
|
|
|
+ // $this->createInserts($value[MigrationsBase::INSERT]);
|
|
|
+ // } else if (strtoupper($key) === MigrationsBase::UPDATE) {
|
|
|
+ // $this->createUpdates($value[MigrationsBase::UPDATE]);
|
|
|
+ // } else if (strtoupper($key) === MigrationsBase::DELETE) {
|
|
|
+ // $this->createDeletes($value[MigrationsBase::DELETE]);
|
|
|
+ // }
|
|
|
+ //}
|
|
|
if (array_key_exists(MigrationsBase::INSERT, $value)) {
|
|
|
$this->setLine(0);
|
|
|
$this->createInserts($value[MigrationsBase::INSERT]);
|