Kaynağa Gözat

Arreglo ejecucion sql

gabriel 7 yıl önce
ebeveyn
işleme
229b5b37f9
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      Migrations/MigrationsBase.php

+ 5 - 5
Migrations/MigrationsBase.php

@@ -224,9 +224,9 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
                     $this->createUpdates($value[MigrationsBase::UPDATE]);
                 } else if (strtoupper($key) === MigrationsBase::DELETE) {
                     $this->createDeletes($value[MigrationsBase::DELETE]);
-		}else{
-			die("Valor no esperado");
-		}
+                } else {
+                    die("Valor no esperado");
+                }
             }
         }
     }
@@ -493,7 +493,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      */
     public function executeSQL($sql, $type, $arrayPrepare = null)
     {
-	$this->connection->executeUpdate($sql, (array)$arrayPrepare);
+        $this->connection->executeUpdate($sql, (array)$arrayPrepare);
 
         $this->sumLine();
     }
@@ -747,7 +747,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
             foreach ($resp as $key => $value) {
                 if (isset($value["AUTO_INCREMENT"])) {
                     $autoIncrement = $value["AUTO_INCREMENT"];
-}
+                }
             }
         } catch (\Throwable $e) {
         }