[core] Added versioning to the cache database
Force drop the table when the version doesn't match. Previously it was assumed (my bad) that CREATE TABLE IF NOT EXISTS would compare the table schema, which is not true.
This commit is contained in:
@@ -42,6 +42,9 @@ private:
|
||||
void createDatabase();
|
||||
void createSchema();
|
||||
|
||||
int schemaVersion() const;
|
||||
void ensureSchemaVersion();
|
||||
|
||||
int pageSize = 0;
|
||||
|
||||
uint64_t maximumCacheSize;
|
||||
|
||||
Reference in New Issue
Block a user