From b3826064b7ad7d1d5a190ed34f87fdb097f8c725 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 26 Sep 2021 18:35:03 +0200 Subject: [PATCH] Bump device schema version --- data/schema/device-schema.sql | 2 +- src/device/devicedatabasebackend.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/schema/device-schema.sql b/data/schema/device-schema.sql index 3a24a7adb..09e437183 100644 --- a/data/schema/device-schema.sql +++ b/data/schema/device-schema.sql @@ -80,4 +80,4 @@ CREATE VIRTUAL TABLE device_%deviceid_fts USING fts5( tokenize = "unicode61 remove_diacritics 1" ); -UPDATE devices SET schema_version=2 WHERE ROWID=%deviceid; +UPDATE devices SET schema_version=3 WHERE ROWID=%deviceid; diff --git a/src/device/devicedatabasebackend.cpp b/src/device/devicedatabasebackend.cpp index 68441d7a0..734a290d3 100644 --- a/src/device/devicedatabasebackend.cpp +++ b/src/device/devicedatabasebackend.cpp @@ -39,7 +39,7 @@ #include "core/scopedtransaction.h" #include "devicedatabasebackend.h" -const int DeviceDatabaseBackend::kDeviceSchemaVersion = 2; +const int DeviceDatabaseBackend::kDeviceSchemaVersion = 3; DeviceDatabaseBackend::DeviceDatabaseBackend(QObject *parent) : QObject(parent),