handle PDO exceptions in createSchemaTable

This commit is contained in:
Joby 2022-06-06 13:05:38 -06:00 committed by GitHub
parent da7660fa20
commit 11e6e43072
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,10 @@ abstract class AbstractSQLDriver extends AbstractDriver
public function createSchemaTable()
{
$this->pdo->exec($this->sql_create_schema_table());
try {
$this->pdo->exec($this->sql_create_schema_table());
} catch (\Throwable $th) {
}
return $this->tableExists(AbstractDriver::SCHEMA_TABLE);
}