fix: migration clears allowed users groups

This commit is contained in:
Elias Schneider
2025-08-24 15:05:20 +02:00
parent 29eacd6424
commit 5971bfbfa6

View File

@@ -1,3 +1,4 @@
PRAGMA foreign_keys=OFF;
---------------------------
-- Delete all orphaned rows
---------------------------
@@ -170,4 +171,7 @@ SELECT id, created_at, name, credential_id, public_key, attestation_type,
transport, user_id, backup_eligible, backup_state
FROM webauthn_credentials;
DROP TABLE webauthn_credentials;
ALTER TABLE webauthn_credentials_new RENAME TO webauthn_credentials;
ALTER TABLE webauthn_credentials_new RENAME TO webauthn_credentials;
PRAGMA foreign_keys=ON;
PRAGMA foreign_key_check;