mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix field name postfix
This commit is contained in:
parent
d000202be7
commit
33a134ca33
4 changed files with 7 additions and 7 deletions
|
|
@ -55,7 +55,7 @@ int Main::restore(
|
||||||
Glib::ustring::sprintf(
|
Glib::ustring::sprintf(
|
||||||
R"SQL(
|
R"SQL(
|
||||||
SELECT * FROM `app_browser_main__session`
|
SELECT * FROM `app_browser_main__session`
|
||||||
WHERE `app_browser__session_id` = %d
|
WHERE `app_browser__session__id` = %d
|
||||||
)SQL",
|
)SQL",
|
||||||
APP_BROWSER__SESSION__ID
|
APP_BROWSER__SESSION__ID
|
||||||
).c_str(),
|
).c_str(),
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ namespace app::browser
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ID,
|
ID,
|
||||||
APP_BROWSER__SESSION_ID,
|
APP_BROWSER__SESSION__ID,
|
||||||
TIME
|
TIME
|
||||||
}; // table fields index
|
}; // table fields index
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ int Tab::restore(
|
||||||
Glib::ustring::sprintf(
|
Glib::ustring::sprintf(
|
||||||
R"SQL(
|
R"SQL(
|
||||||
SELECT * FROM `app_browser_main_tab__session`
|
SELECT * FROM `app_browser_main_tab__session`
|
||||||
WHERE `app_browser_main__session_id` = %d ORDER BY `page_number` ASC
|
WHERE `app_browser_main__session__id` = %d ORDER BY `page_number` ASC
|
||||||
)SQL",
|
)SQL",
|
||||||
APP_BROWSER_MAIN__SESSION__ID
|
APP_BROWSER_MAIN__SESSION__ID
|
||||||
).c_str(),
|
).c_str(),
|
||||||
|
|
@ -355,7 +355,7 @@ int Tab::DB::SESSION::init(
|
||||||
R"SQL(
|
R"SQL(
|
||||||
CREATE TABLE IF NOT EXISTS `app_browser_main_tab__session`
|
CREATE TABLE IF NOT EXISTS `app_browser_main_tab__session`
|
||||||
(
|
(
|
||||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `app_browser_main__session_id` INTEGER NOT NULL,
|
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `app_browser_main__session__id` INTEGER NOT NULL,
|
||||||
`time` INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`time` INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`page_number` INTEGER NOT NULL,
|
`page_number` INTEGER NOT NULL,
|
||||||
`is_current` INTEGER NOT NULL
|
`is_current` INTEGER NOT NULL
|
||||||
|
|
@ -379,7 +379,7 @@ int Tab::DB::SESSION::clean(
|
||||||
Glib::ustring::sprintf(
|
Glib::ustring::sprintf(
|
||||||
R"SQL(
|
R"SQL(
|
||||||
SELECT * FROM `app_browser_main_tab__session`
|
SELECT * FROM `app_browser_main_tab__session`
|
||||||
WHERE `app_browser_main__session_id` = %d
|
WHERE `app_browser_main__session__id` = %d
|
||||||
)SQL",
|
)SQL",
|
||||||
APP_BROWSER_MAIN__SESSION__ID
|
APP_BROWSER_MAIN__SESSION__ID
|
||||||
).c_str(),
|
).c_str(),
|
||||||
|
|
@ -446,7 +446,7 @@ sqlite3_int64 Tab::DB::SESSION::add(
|
||||||
Glib::ustring::sprintf(
|
Glib::ustring::sprintf(
|
||||||
R"SQL(
|
R"SQL(
|
||||||
INSERT INTO `app_browser_main_tab__session` (
|
INSERT INTO `app_browser_main_tab__session` (
|
||||||
`app_browser_main__session_id`,
|
`app_browser_main__session__id`,
|
||||||
`page_number`,
|
`page_number`,
|
||||||
`is_current`
|
`is_current`
|
||||||
) VALUES (
|
) VALUES (
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ namespace app::browser::main
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ID,
|
ID,
|
||||||
APP_BROWSER_MAIN__SESSION_ID,
|
APP_BROWSER_MAIN__SESSION__ID,
|
||||||
TIME,
|
TIME,
|
||||||
PAGE_NUMBER,
|
PAGE_NUMBER,
|
||||||
IS_CURRENT
|
IS_CURRENT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue