Browse Source

remove time extra column as not in use

master
yggverse 2 months ago
parent
commit
f463c71d4f
  1. 2
      src/app/browser/database.rs
  2. 2
      src/app/browser/widget/database.rs

2
src/app/browser/database.rs

@ -4,7 +4,6 @@ use std::sync::Arc; @@ -4,7 +4,6 @@ use std::sync::Arc;
pub struct Table {
pub id: i64,
pub app_id: i64,
// pub time: i64,
}
pub struct Database {
@ -17,7 +16,6 @@ impl Database { @@ -17,7 +16,6 @@ impl Database {
"CREATE TABLE IF NOT EXISTS `app_browser`
(
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW')),
`app_id` INTEGER NOT NULL
)",
[],

2
src/app/browser/widget/database.rs

@ -4,7 +4,6 @@ use std::sync::Arc; @@ -4,7 +4,6 @@ use std::sync::Arc;
pub struct Table {
pub id: i64,
pub app_browser_id: i64,
// pub time: i64,
pub default_width: i32,
pub default_height: i32,
pub is_maximized: bool,
@ -20,7 +19,6 @@ impl Database { @@ -20,7 +19,6 @@ impl Database {
"CREATE TABLE IF NOT EXISTS `app_browser_widget`
(
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW')),
`app_browser_id` INTEGER NOT NULL,
`default_width` INTEGER NOT NULL,
`default_height` INTEGER NOT NULL,

Loading…
Cancel
Save