hasTable(Utils::table(MIGRATION_TABLE))) { return false; } $migration_table = $schema->getTable(Utils::table(MIGRATION_TABLE)); /** * We check the migration table */ if ($migration_table->hasColumn('name')) { /** @var $stmt \Doctrine\DBAL\Driver\Statement */ $stmt = $this->connection->prepare('SELECT * FROM ' . Utils::table(MIGRATION_TABLE) . ' WHERE name = ?'); $stmt->execute([$class]); return $stmt->rowCount() > 0; } return false; } }