mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 00:04:43 +02:00
updated password reset requests. Fixes #452
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
-- +migrate Up
|
||||
|
||||
-- remove the old unique index (users might need multiple password resets)
|
||||
ALTER TABLE password_reset_requests DROP CONSTRAINT password_reset_requests_account_id_key;
|
||||
|
||||
-- add new constraint which doesnt mind having multiple resets for account ids
|
||||
ALTER TABLE password_reset_requests ADD CONSTRAINT password_reset_requests_account_id_key FOREIGN KEY (account_id) REFERENCES accounts (id) on delete cascade;
|
Reference in New Issue
Block a user