Browse Source

Add error_logs

jmontoyaa 7 years ago
parent
commit
56caad88ec

+ 0 - 1
app/Migrations/Schema/V111/Version20160907140300.php

@@ -235,7 +235,6 @@ class Version20160907140300 extends AbstractMigrationChamilo
                 $this->addSql("ALTER TABLE $table CHANGE $field $field DATE");
             }
         }
-        error_log("finished");
     }
 
     public function down(Schema $schema)

+ 3 - 2
app/Migrations/Schema/V111/Version20160907150300.php

@@ -193,8 +193,9 @@ class Version20160907150300 extends AbstractMigrationChamilo
             if (!$schema->hasTable($name)) {
                 continue;
             }
-            error_log($name);
-            $this->addSql("ALTER TABLE $name ENGINE=InnoDB");
+            $sql = "ALTER TABLE $name ENGINE=InnoDB";
+            $this->addSql($sql);
+            error_log($sql);
         }
     }
 

+ 0 - 4
main/install/install.lib.php

@@ -2114,10 +2114,6 @@ function migrate($chamiloVersion, EntityManager $manager)
 
     $migration = new \Doctrine\DBAL\Migrations\Migration($config);
     $versions = $config->getMigrations();
-    error_log('Versions to execute: ');
-    foreach ($versions as $version) {
-        error_log($version->getVersion());
-    }
 
     /** @var Doctrine\DBAL\Migrations\Version $migrationItem */
     foreach ($versions as $version) {