Remove comment about role column in users table

Removed unnecessary comment about ensuring 'role' column in users table.
This commit is contained in:
Kosztyk 2026-01-12 20:28:16 +02:00 committed by GitHub
parent 76686a0cec
commit a09aa1ef50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {