Skip to content

Commit

Permalink
Use partial index on postgresql
Browse files Browse the repository at this point in the history
only postgres supports them
  • Loading branch information
strehle committed Jun 26, 2024
1 parent bf64ffb commit d6f0ce5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-- add column external_key for oauth2,oidc,saml2 IdPs
ALTER TABLE identity_provider ADD COLUMN external_key TEXT DEFAULT NULL;
CREATE UNIQUE INDEX identity_provider_ext_key_zid__idx on identity_provider (identity_zone_id,type,external_key);
CREATE UNIQUE INDEX identity_provider_ext_key_zid__idx on identity_provider (identity_zone_id,type,external_key) WHERE external_key IS NOT NULL;

0 comments on commit d6f0ce5

Please sign in to comment.