mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-09-12 23:12:00 +00:00
remove time extra column as not in use
This commit is contained in:
parent
5811182817
commit
f463c71d4f
@ -4,7 +4,6 @@ use std::sync::Arc;
|
|||||||
pub struct Table {
|
pub struct Table {
|
||||||
pub id: i64,
|
pub id: i64,
|
||||||
pub app_id: i64,
|
pub app_id: i64,
|
||||||
// pub time: i64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Database {
|
pub struct Database {
|
||||||
@ -16,8 +15,7 @@ impl Database {
|
|||||||
connection.execute(
|
connection.execute(
|
||||||
"CREATE TABLE IF NOT EXISTS `app_browser`
|
"CREATE TABLE IF NOT EXISTS `app_browser`
|
||||||
(
|
(
|
||||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||||
`time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW')),
|
|
||||||
`app_id` INTEGER NOT NULL
|
`app_id` INTEGER NOT NULL
|
||||||
)",
|
)",
|
||||||
[],
|
[],
|
||||||
|
@ -4,7 +4,6 @@ use std::sync::Arc;
|
|||||||
pub struct Table {
|
pub struct Table {
|
||||||
pub id: i64,
|
pub id: i64,
|
||||||
pub app_browser_id: i64,
|
pub app_browser_id: i64,
|
||||||
// pub time: i64,
|
|
||||||
pub default_width: i32,
|
pub default_width: i32,
|
||||||
pub default_height: i32,
|
pub default_height: i32,
|
||||||
pub is_maximized: bool,
|
pub is_maximized: bool,
|
||||||
@ -19,12 +18,11 @@ impl Database {
|
|||||||
connection.execute(
|
connection.execute(
|
||||||
"CREATE TABLE IF NOT EXISTS `app_browser_widget`
|
"CREATE TABLE IF NOT EXISTS `app_browser_widget`
|
||||||
(
|
(
|
||||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||||
`time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW')),
|
|
||||||
`app_browser_id` INTEGER NOT NULL,
|
`app_browser_id` INTEGER NOT NULL,
|
||||||
`default_width` INTEGER NOT NULL,
|
`default_width` INTEGER NOT NULL,
|
||||||
`default_height` INTEGER NOT NULL,
|
`default_height` INTEGER NOT NULL,
|
||||||
`is_maximized` INTEGER NOT NULL
|
`is_maximized` INTEGER NOT NULL
|
||||||
)",
|
)",
|
||||||
[],
|
[],
|
||||||
)?;
|
)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user