mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: Try with select 1
This commit is contained in:
parent
0209a69722
commit
6e924cb531
@ -31,6 +31,8 @@ Future<Database> getDatabase(Client client) async {
|
|||||||
filename: 'moor.sqlite',
|
filename: 'moor.sqlite',
|
||||||
password: password,
|
password: password,
|
||||||
);
|
);
|
||||||
|
// Check if database is open:
|
||||||
|
debugPrint((await _db.customSelect('SELECT 1').get()).toString());
|
||||||
if (needMigration) {
|
if (needMigration) {
|
||||||
debugPrint('[Moor] Start migration');
|
debugPrint('[Moor] Start migration');
|
||||||
await migrate(client.clientName, _db, store);
|
await migrate(client.clientName, _db, store);
|
||||||
|
Loading…
Reference in New Issue
Block a user