From 2830be6a5b6356fe5cfce51f229e2322a663374c Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 13 Sep 2024 00:11:12 +0300 Subject: [PATCH] add missed column --- src/app/browser/main.cpp | 5 ++--- src/app/browser/main.hpp | 1 + src/app/browser/main/tab.cpp | 2 +- src/app/browser/main/tab.hpp | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index a0139004..31e31258 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -192,9 +192,8 @@ int Main::DB::SESSION::init( R"SQL( CREATE TABLE IF NOT EXISTS `app_browser_main__session` ( - `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - `time` INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP, - `app_browser__session__id` INTEGER NOT NULL + `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `app_browser__session__id` INTEGER NOT NULL + `time` INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP ) )SQL", nullptr, diff --git a/src/app/browser/main.hpp b/src/app/browser/main.hpp index a9c56d22..4c3a43a1 100644 --- a/src/app/browser/main.hpp +++ b/src/app/browser/main.hpp @@ -33,6 +33,7 @@ namespace app::browser enum { ID, + APP_BROWSER__SESSION_ID, TIME }; // table fields index diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 94d5686c..71f7d9be 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -355,7 +355,7 @@ int Tab::DB::SESSION::init( R"SQL( CREATE TABLE IF NOT EXISTS `app_browser_main_tab__session` ( - `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `app_browser_main__session_id` INTEGER NOT NULL, `time` INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP, `page_number` INTEGER NOT NULL, `is_current` INTEGER NOT NULL diff --git a/src/app/browser/main/tab.hpp b/src/app/browser/main/tab.hpp index 17b99a75..b58dfd1f 100644 --- a/src/app/browser/main/tab.hpp +++ b/src/app/browser/main/tab.hpp @@ -33,6 +33,7 @@ namespace app::browser::main enum { ID, + APP_BROWSER_MAIN__SESSION_ID, TIME, PAGE_NUMBER, IS_CURRENT