summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-11-06 15:39:06 +0100
committerAleš Smodiš <aless@guru.si>2015-11-06 15:39:06 +0100
commitbfe3be04dde8b72bba1d0dd30ce48625b48cffa4 (patch)
tree5d83207c4910d7526026d8d25d1dfd79b5317f17 /scripts
parent9b0915cb2ac613d2da04381772f2bf840f99068b (diff)
Fix SAML login: account upgrading is done via the email attribute, username is eduPersonPrincipalName.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/db_update-20151106.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/db_update-20151106.sql b/scripts/db_update-20151106.sql
new file mode 100644
index 0000000..6a06dbe
--- /dev/null
+++ b/scripts/db_update-20151106.sql
@@ -0,0 +1,3 @@
+alter table codeq_user drop constraint codeq_user_uq1;
+create unique index codeq_user_username_saml_idx on codeq_user (username) where password is null;
+create unique index codeq_user_username_common_idx on codeq_user (username) where password is not null;