creating the users table all caps style gives us duplicates in postgres.

This commit is contained in:
Brian O'Reilly 2025-11-23 20:33:51 -05:00 committed by Brian O'Reilly
parent aa84ff4470
commit 7a4e9c208a
2 changed files with 5 additions and 4 deletions

View File

@ -1028,7 +1028,8 @@
":template"
(radiance:environment-directory (radiance-core:environment) :template)
":static"
(radiance:environment-directory (radiance-core:environment) :static)))
(radiance:environment-directory (radiance-core:environment) :static))
(db:connect :main))
(defun start-slynk-server-in-new-thread (&optional (port 4009))
"Starts a Slynk server in a new thread on the specified port."
@ -1054,7 +1055,7 @@
(ensure-radiance-environment)
;; Initialize user management before server starts
(initialize-user-system)
;; (initialize-user-system)
;; TODO: Add auto-scan on startup once database timing issues are resolved
;; For now, use the "Scan Library" button in the admin interface

View File

@ -23,8 +23,8 @@
(user-id :integer)
(track-ids :text))))
(unless (db:collection-exists-p "USERS")
(db:create "USERS" '((username :text)
(unless (db:collection-exists-p "users")
(db:create "users" '((username :text)
(email :text)
(password-hash :text)
(role :text)