mailPasswords table should work with oidc clients not apps

This commit is contained in:
Johannes Zellner
2026-02-18 15:17:08 +01:00
parent 5e7e739589
commit 43acecfc6e
4 changed files with 27 additions and 30 deletions

View File

@@ -301,13 +301,13 @@ CREATE TABLE IF NOT EXISTS appPasswords(
);
CREATE TABLE IF NOT EXISTS mailPasswords(
appId VARCHAR(128) NOT NULL,
clientId VARCHAR(128) NOT NULL,
userId VARCHAR(128) NOT NULL,
password VARCHAR(1024) NOT NULL,
creationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY(appId) REFERENCES apps(id),
FOREIGN KEY(clientId) REFERENCES oidcClients(id),
FOREIGN KEY(userId) REFERENCES users(id),
PRIMARY KEY (appId, userId)
PRIMARY KEY (clientId, userId)
);
CREATE TABLE IF NOT EXISTS dockerRegistries(