creating the users table all caps style gives us duplicates in postgres.
This commit is contained in:
parent
aa84ff4470
commit
7a4e9c208a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue