photoprism/internal/migrate/sqlite3/20230309-000001.sql
Michael Mayer d8ab9616a5 Auth: Refactor user management API and CLI commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 15:12:10 +01:00

4 lines
No EOL
309 B
SQL

UPDATE auth_users SET auth_provider = 'local' WHERE id = 1;
UPDATE auth_users SET auth_provider = 'none' WHERE id = -1;
UPDATE auth_users SET auth_provider = 'token' WHERE id = -2;
UPDATE auth_users SET auth_provider = 'default' WHERE auth_provider = '' OR auth_provider = 'password' OR auth_provider IS NULL;