diff --git a/shogun-boot/src/main/resources/db/migration/V0.15.0__Add_AuthProviderId_Constraints.sql b/shogun-boot/src/main/resources/db/migration/V0.15.0__Add_AuthProviderId_Constraints.sql new file mode 100644 index 00000000..e11a90d2 --- /dev/null +++ b/shogun-boot/src/main/resources/db/migration/V0.15.0__Add_AuthProviderId_Constraints.sql @@ -0,0 +1,7 @@ +ALTER TABLE shogun.users +DROP CONSTRAINT IF EXISTS users_unique_auth_provider_id, +ADD CONSTRAINT users_unique_auth_provider_id UNIQUE (auth_provider_id); + +ALTER TABLE shogun.groups +DROP CONSTRAINT IF EXISTS groups_unique_auth_provider_id, +ADD CONSTRAINT groups_unique_auth_provider_id UNIQUE (auth_provider_id);