mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
chore: fixing issue with mobile database naming
This commit is contained in:
parent
a335444d73
commit
90bbe098b8
1 changed files with 1 additions and 4 deletions
|
|
@ -191,10 +191,7 @@ export class WorkerDatabase {
|
|||
SQL.FS.mkdir('/sql');
|
||||
SQL.FS.mount(sqlFS, {}, '/sql');
|
||||
|
||||
// Removing old database under the generic name
|
||||
indexedDB.deleteDatabase('sqlseal.sqlite')
|
||||
|
||||
const path = `sql/sqlseal___${this.dbName}.sqlite3`
|
||||
const path = `sql/sqlseal___${sanitise(this.dbName)}.db`
|
||||
|
||||
let stream = SQL.FS.open(path, 'a+');
|
||||
await stream.node.contents.readIfFallback();
|
||||
|
|
|
|||
Loading…
Reference in a new issue