compat versions sqlite <3.3.0
This commit is contained in:
parent
da011b56cb
commit
8117c8cf0a
|
@ -30,7 +30,9 @@ class SqliteStorage extends CapacitorStorage {
|
|||
|
||||
function tableExists(string $tableName): bool {
|
||||
$name = $this->db->get([
|
||||
"select name from sqlite_schema",
|
||||
# depuis la version 3.33.0 le nom officiel de la table est sqlite_schema,
|
||||
# mais le nom sqlite_master est toujours valable pour le moment
|
||||
"select name from sqlite_master ",
|
||||
"where" => ["name" => $tableName],
|
||||
]);
|
||||
return $name !== null;
|
||||
|
|
Loading…
Reference in New Issue