From f463c71d4f2d61495c0b42f21e88f970458fda8d Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 5 Oct 2024 03:31:28 +0300 Subject: [PATCH] remove time extra column as not in use --- src/app/browser/database.rs | 4 +--- src/app/browser/widget/database.rs | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/app/browser/database.rs b/src/app/browser/database.rs index 65f7e8a2..5a6ddf56 100644 --- a/src/app/browser/database.rs +++ b/src/app/browser/database.rs @@ -4,7 +4,6 @@ use std::sync::Arc; pub struct Table { pub id: i64, pub app_id: i64, - // pub time: i64, } pub struct Database { @@ -16,8 +15,7 @@ impl Database { connection.execute( "CREATE TABLE IF NOT EXISTS `app_browser` ( - `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - `time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW')), + `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `app_id` INTEGER NOT NULL )", [], diff --git a/src/app/browser/widget/database.rs b/src/app/browser/widget/database.rs index 10bfc670..e0753c6e 100644 --- a/src/app/browser/widget/database.rs +++ b/src/app/browser/widget/database.rs @@ -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, @@ -19,12 +18,11 @@ impl Database { connection.execute( "CREATE TABLE IF NOT EXISTS `app_browser_widget` ( - `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - `time` INTEGER NOT NULL DEFAULT (UNIXEPOCH('NOW')), + `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `app_browser_id` INTEGER NOT NULL, - `default_width` INTEGER NOT NULL, + `default_width` INTEGER NOT NULL, `default_height` INTEGER NOT NULL, - `is_maximized` INTEGER NOT NULL + `is_maximized` INTEGER NOT NULL )", [], )?;