From a09aa1ef502e7e6e3a8b922173c6b52f41fab205 Mon Sep 17 00:00:00 2001 From: Kosztyk <36381705+Kosztyk@users.noreply.github.com> Date: Mon, 12 Jan 2026 20:28:16 +0200 Subject: [PATCH] Remove comment about role column in users table Removed unnecessary comment about ensuring 'role' column in users table. --- src/db/db.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/db/db.ts b/src/db/db.ts index 2c4f6f0..6a0fc60 100644 --- a/src/db/db.ts +++ b/src/db/db.ts @@ -39,10 +39,6 @@ if (dbVersion === 0) { console.log("Updated database to version 1."); } -/** - * Ensure `role` column exists on users table. - * This works for both fresh installs and existing DBs, without touching user_version. - */ const userColumns = db.query("PRAGMA table_info(users)").all() as { name: string }[]; const hasRoleColumn = userColumns.some((col) => col.name === "role"); if (!hasRoleColumn) {