fix: sqlite migration drops allowed user groups

This commit is contained in:
Elias Schneider
2025-08-24 23:07:50 +02:00
parent 4b086cebcd
commit d6d1a4ced2
73 changed files with 355 additions and 62 deletions

View File

@@ -1,3 +1,5 @@
PRAGMA foreign_keys=OFF;
BEGIN;
CREATE TABLE oidc_device_codes
(
id TEXT NOT NULL PRIMARY KEY,
@@ -9,4 +11,6 @@ CREATE TABLE oidc_device_codes
is_authorized BOOLEAN NOT NULL DEFAULT FALSE,
user_id TEXT REFERENCES users ON DELETE CASCADE,
client_id TEXT NOT NULL REFERENCES oidc_clients ON DELETE CASCADE
);
);
COMMIT;
PRAGMA foreign_keys=ON;