not drop user db
This commit is contained in:
parent
38e2e448fa
commit
1a90f2a01f
@ -313,14 +313,15 @@ Status TdDb::init_sqlite(int32 scheduler_id, const TdParameters ¶meters, DbK
|
||||
LOG(WARNING) << "Got PRAGMA user_version = " << user_version;
|
||||
|
||||
// init DialogDb
|
||||
TRY_STATUS(drop_dialog_db(db, user_version));
|
||||
bool dialog_db_was_created = false;
|
||||
|
||||
if (use_dialog_db) {
|
||||
TRY_STATUS(init_dialog_db(db, user_version, dialog_db_was_created));
|
||||
}
|
||||
|
||||
// init MessagesDb
|
||||
TRY_STATUS(drop_messages_db(db, user_version));
|
||||
|
||||
if (use_message_db) {
|
||||
TRY_STATUS(init_messages_db(db, user_version));
|
||||
}
|
||||
|
Reference in New Issue
Block a user