|
@@ -493,7 +493,7 @@ discard block |
|
|
block discarded – undo |
|
493
|
493
|
$this->createMigrationTable(); |
|
494
|
494
|
|
|
495
|
495
|
$version = $this->connection->fetchColumn( |
|
496
|
|
- "SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName . " WHERE " . $this->migrationsColumnName . " = ?", |
|
|
496
|
+ "SELECT ".$this->migrationsColumnName." FROM ".$this->migrationsTableName." WHERE ".$this->migrationsColumnName." = ?", |
|
497
|
497
|
[$version->getVersion()] |
|
498
|
498
|
); |
|
499
|
499
|
|
|
@@ -509,7 +509,7 @@ discard block |
|
|
block discarded – undo |
|
509
|
509
|
{ |
|
510
|
510
|
$this->createMigrationTable(); |
|
511
|
511
|
|
|
512
|
|
- $ret = $this->connection->fetchAll("SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName); |
|
|
512
|
+ $ret = $this->connection->fetchAll("SELECT ".$this->migrationsColumnName." FROM ".$this->migrationsTableName); |
|
513
|
513
|
|
|
514
|
514
|
return array_map('current', $ret); |
|
515
|
515
|
} |
|
@@ -553,7 +553,7 @@ discard block |
|
|
block discarded – undo |
|
553
|
553
|
foreach ($this->migrations as $migration) { |
|
554
|
554
|
$migratedVersions[] = sprintf("'%s'", $migration->getVersion()); |
|
555
|
555
|
} |
|
556
|
|
- $where = " WHERE " . $this->migrationsColumnName . " IN (" . implode(', ', $migratedVersions) . ")"; |
|
|
556
|
+ $where = " WHERE ".$this->migrationsColumnName." IN (".implode(', ', $migratedVersions).")"; |
|
557
|
557
|
} |
|
558
|
558
|
|
|
559
|
559
|
$sql = sprintf("SELECT %s FROM %s%s ORDER BY %s DESC", |
|
@@ -659,7 +659,7 @@ discard block |
|
|
block discarded – undo |
|
659
|
659
|
{ |
|
660
|
660
|
$this->createMigrationTable(); |
|
661
|
661
|
|
|
662
|
|
- $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName); |
|
|
662
|
+ $result = $this->connection->fetchColumn("SELECT COUNT(".$this->migrationsColumnName.") FROM ".$this->migrationsTableName); |
|
663
|
663
|
|
|
664
|
664
|
return $result !== false ? $result : 0; |
|
665
|
665
|
} |
|
@@ -845,7 +845,7 @@ discard block |
|
|
block discarded – undo |
|
845
|
845
|
*/ |
|
846
|
846
|
private function ensureMigrationClassExists($class) |
|
847
|
847
|
{ |
|
848
|
|
- if ( ! class_exists($class)) { |
|
|
848
|
+ if (!class_exists($class)) { |
|
849
|
849
|
throw MigrationException::migrationClassNotFound($class, $this->getMigrationsNamespace()); |
|
850
|
850
|
} |
|
851
|
851
|
} |