diff --git a/controller/store/sql/postgresql/017_v0_4_23_password_reset_request_unique.sql b/controller/store/sql/postgresql/017_v0_4_23_password_reset_request_unique.sql index 00b1ec97..120023cf 100644 --- a/controller/store/sql/postgresql/017_v0_4_23_password_reset_request_unique.sql +++ b/controller/store/sql/postgresql/017_v0_4_23_password_reset_request_unique.sql @@ -4,4 +4,4 @@ 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; +ALTER TABLE password_reset_requests ADD CONSTRAINT password_reset_requests_account_id_key FOREIGN KEY (account_id) REFERENCES accounts (id) ON DELETE CASCADE;