fix server location on device registration

This commit is contained in:
m
2026-07-28 21:45:02 +02:00
parent 7af44152d7
commit 7cc425d28b
7 changed files with 158 additions and 31 deletions
@@ -0,0 +1 @@
DROP INDEX IF EXISTS idx_storage_locations_user_server;
@@ -0,0 +1,2 @@
CREATE UNIQUE INDEX IF NOT EXISTS idx_storage_locations_user_server
ON storage_locations(user_id) WHERE role = 'server';