From 863dcfa70513b8fffc7b3362ac24e0455f215b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20Ribari=C4=87?= Date: Sat, 5 Oct 2024 20:16:20 +0200 Subject: [PATCH] feat(workspaces): remove unused `used` field from workspaces This commit removes the `used` field from the Workspaces database table and Zen Workspace objects. The `used` field was originally intended to track whether a workspace was currently being used, but it turned out to be unnecessary. This change simplifies the data model and removes redundant information. --- src/ZenWorkspaces.mjs | 1 - src/ZenWorkspacesStorage.mjs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ZenWorkspaces.mjs b/src/ZenWorkspaces.mjs index f240aca..f60126a 100644 --- a/src/ZenWorkspaces.mjs +++ b/src/ZenWorkspaces.mjs @@ -670,7 +670,6 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature { let window = { uuid: gZenUIManager.generateUuidv4(), default: isDefault, - used: true, icon: icon, name: name, }; diff --git a/src/ZenWorkspacesStorage.mjs b/src/ZenWorkspacesStorage.mjs index c712e51..861af51 100644 --- a/src/ZenWorkspacesStorage.mjs +++ b/src/ZenWorkspacesStorage.mjs @@ -18,7 +18,6 @@ var ZenWorkspacesStorage = { position INTEGER NOT NULL DEFAULT 0, created_at INTEGER NOT NULL, updated_at INTEGER NOT NULL, - used INTEGER NOT NULL DEFAULT 0 ) `);