mailPasswords table should work with oidc clients not apps
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user