move the new sql to patch8.sql

This commit is contained in:
LouisLam 2021-08-29 11:16:06 +08:00
parent dd877cfc70
commit ada6606217
2 changed files with 8 additions and 1 deletions

7
db/patch8.sql Normal file
View File

@ -0,0 +1,7 @@
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
BEGIN TRANSACTION;
ALTER TABLE monitor
ADD dns_last_result VARCHAR(255);
COMMIT;

View File

@ -6,7 +6,7 @@ class Database {
static templatePath = "./db/kuma.db" static templatePath = "./db/kuma.db"
static path = "./data/kuma.db"; static path = "./data/kuma.db";
static latestVersion = 7; static latestVersion = 8;
static noReject = true; static noReject = true;
static sqliteInstance = null; static sqliteInstance = null;