Automatically remove devices with old schemas when upgrading

This commit is contained in:
Jonas Kvinge
2019-08-02 22:58:30 +02:00
parent 43b9941dc8
commit 2d3f41da6f
3 changed files with 21 additions and 7 deletions

View File

@@ -75,4 +75,4 @@ CREATE VIRTUAL TABLE device_%deviceid_fts USING fts5(
tokenize = "unicode61 remove_diacritics 0"
);
UPDATE devices SET schema_version=0 WHERE ROWID=%deviceid;
UPDATE devices SET schema_version=1 WHERE ROWID=%deviceid;