Bug fixing
This commit is contained in:
@@ -100,7 +100,7 @@ bool Database::setVersion(int version) {
|
||||
}
|
||||
|
||||
bool Database::migrate(int from_version, int to_version) {
|
||||
if (from_version == 1 && to_version == 2) {
|
||||
if (from_version < 3 && to_version == 3) {
|
||||
// Drop old table
|
||||
const char* drop_sql = "DROP TABLE IF EXISTS objects;";
|
||||
char* err_msg = nullptr;
|
||||
|
Reference in New Issue
Block a user