Use SqliteDb::destroy instead of plain unlink.
This commit is contained in:
parent
cb70993b90
commit
297594af7e
@ -288,7 +288,7 @@ Status TdDb::init_sqlite(const TdParameters ¶meters, const DbKey &key, const
|
||||
bool use_dialog_db = parameters.use_message_db;
|
||||
bool use_message_db = parameters.use_message_db;
|
||||
if (!use_sqlite) {
|
||||
unlink(sql_database_path).ignore();
|
||||
SqliteDb::destroy(sql_database_path).ignore();
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user