From 8fbab49f0ddba24bb0c81db2c8cebdcc2dca5433 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 4 Feb 2023 21:33:08 +1300 Subject: [PATCH] Create unique constraints for tmp_password and role_member. --- dba/patches/1.3.4.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dba/patches/1.3.4.sql b/dba/patches/1.3.4.sql index e2eb2a2b..634a6c9d 100644 --- a/dba/patches/1.3.4.sql +++ b/dba/patches/1.3.4.sql @@ -54,6 +54,12 @@ CREATE UNIQUE INDEX calendar_alarms_pk -- Tidy up after ourselves. DROP SEQUENCE temporary_seq; +-- Add unique constraints where no other changes are needed. +CREATE UNIQUE INDEX role_member_pk + ON role_member (role_no, user_no); +CREATE UNIQUE INDEX tmp_password_pk + ON tmp_password (user_no, valid_until); + -- http://blogs.transparent.com/polish/names-of-the-months-and-their-meaning/ SELECT new_db_revision(1,3,4, 'KwiecieĊ„' );