From 0c8568b0b7af7436a483b1df8cde25eba2c1002a Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Thu, 16 Nov 2023 13:54:39 +0530 Subject: [PATCH] #648 - uuid universally unique for user not just within org (cherry picked from commit 27fbe7349aef9b1686772e74dae9a7d77325a925) --- .../main/resources/db/migration/V1_321__FixUsersUUIDIndex.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 avni-server-api/src/main/resources/db/migration/V1_321__FixUsersUUIDIndex.sql diff --git a/avni-server-api/src/main/resources/db/migration/V1_321__FixUsersUUIDIndex.sql b/avni-server-api/src/main/resources/db/migration/V1_321__FixUsersUUIDIndex.sql new file mode 100644 index 000000000..2f66f4eca --- /dev/null +++ b/avni-server-api/src/main/resources/db/migration/V1_321__FixUsersUUIDIndex.sql @@ -0,0 +1,2 @@ +alter table users drop constraint if exists users_uuid_org_id_key; +alter table users add unique (uuid);