mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-11 17:28:05 +02:00
feat(epic-4): synchro multi-appareils, outils d'admin et optimisations performance
This commit is contained in:
1 parent
dc26f22f51
commit
8777d3b970
10 files changed
+200
-27
No files matched your search
@@ -0,0 +1 @@
|
||||
ALTER TABLE users DROP COLUMN role;
|
||||
@@ -0,0 +1,5 @@
|
||||
-- Add role column to users table
|
||||
ALTER TABLE users ADD COLUMN role VARCHAR(20) NOT NULL DEFAULT 'user';
|
||||
|
||||
-- Set first user as admin (if any)
|
||||
UPDATE users SET role = 'admin' WHERE id = (SELECT id FROM users ORDER BY created_at ASC LIMIT 1);
|
||||
Reference in new issue
Block a user