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"
|
":template"
|
||||||
(radiance:environment-directory (radiance-core:environment) :template)
|
(radiance:environment-directory (radiance-core:environment) :template)
|
||||||
":static"
|
":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))
|
(defun start-slynk-server-in-new-thread (&optional (port 4009))
|
||||||
"Starts a Slynk server in a new thread on the specified port."
|
"Starts a Slynk server in a new thread on the specified port."
|
||||||
|
|
@ -1054,7 +1055,7 @@
|
||||||
(ensure-radiance-environment)
|
(ensure-radiance-environment)
|
||||||
|
|
||||||
;; Initialize user management before server starts
|
;; Initialize user management before server starts
|
||||||
(initialize-user-system)
|
;; (initialize-user-system)
|
||||||
|
|
||||||
;; TODO: Add auto-scan on startup once database timing issues are resolved
|
;; TODO: Add auto-scan on startup once database timing issues are resolved
|
||||||
;; For now, use the "Scan Library" button in the admin interface
|
;; For now, use the "Scan Library" button in the admin interface
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@
|
||||||
(user-id :integer)
|
(user-id :integer)
|
||||||
(track-ids :text))))
|
(track-ids :text))))
|
||||||
|
|
||||||
(unless (db:collection-exists-p "USERS")
|
(unless (db:collection-exists-p "users")
|
||||||
(db:create "USERS" '((username :text)
|
(db:create "users" '((username :text)
|
||||||
(email :text)
|
(email :text)
|
||||||
(password-hash :text)
|
(password-hash :text)
|
||||||
(role :text)
|
(role :text)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue