Browse Source

add missed column

CPP-GTK4
yggverse 3 months ago
parent
commit
2830be6a5b
  1. 5
      src/app/browser/main.cpp
  2. 1
      src/app/browser/main.hpp
  3. 2
      src/app/browser/main/tab.cpp
  4. 1
      src/app/browser/main/tab.hpp

5
src/app/browser/main.cpp

@ -192,9 +192,8 @@ int Main::DB::SESSION::init( @@ -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,

1
src/app/browser/main.hpp

@ -33,6 +33,7 @@ namespace app::browser @@ -33,6 +33,7 @@ namespace app::browser
enum
{
ID,
APP_BROWSER__SESSION_ID,
TIME
}; // table fields index

2
src/app/browser/main/tab.cpp

@ -355,7 +355,7 @@ int Tab::DB::SESSION::init( @@ -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

1
src/app/browser/main/tab.hpp

@ -33,6 +33,7 @@ namespace app::browser::main @@ -33,6 +33,7 @@ namespace app::browser::main
enum
{
ID,
APP_BROWSER_MAIN__SESSION_ID,
TIME,
PAGE_NUMBER,
IS_CURRENT

Loading…
Cancel
Save