소스 검색

Arreglo ejecucion sql

gabriel 7 년 전
부모
커밋
229b5b37f9
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  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) {
         }