This commit is contained in:
@@ -135,6 +135,22 @@ CREATE TABLE IF NOT EXISTS password_reset_tokens (
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_password_reset_tokens_user_id
|
||||
ON password_reset_tokens(user_id);
|
||||
'''),
|
||||
(8, '''
|
||||
CREATE TABLE IF NOT EXISTS mastodon_oauth_states (
|
||||
id TEXT PRIMARY KEY,
|
||||
user_id TEXT NOT NULL,
|
||||
state_hash TEXT NOT NULL UNIQUE,
|
||||
instance TEXT NOT NULL,
|
||||
client_id TEXT NOT NULL,
|
||||
client_secret TEXT NOT NULL,
|
||||
redirect_uri TEXT NOT NULL,
|
||||
expires_at TEXT NOT NULL,
|
||||
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY(user_id) REFERENCES users(id) ON DELETE CASCADE
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_mastodon_oauth_states_state_hash
|
||||
ON mastodon_oauth_states(state_hash);
|
||||
'''),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user