From: Lam Voong Date: Tue, 19 May 2020 16:54:15 +0000 (-0700) Subject: DRYD-835: Update UOC migration script: Change OR to IN for userGroup UP X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=34d40591d0e36ab67e64930e99e021893e031251;p=tmp%2Fjakarta-migration.git DRYD-835: Update UOC migration script: Change OR to IN for userGroup UP --- diff --git a/src/main/resources/db/postgresql/upgrade/6.0.0/post-init/05_uoc.sql b/src/main/resources/db/postgresql/upgrade/6.0.0/post-init/05_uoc.sql index 435f97838..44c5a80ec 100644 --- a/src/main/resources/db/postgresql/upgrade/6.0.0/post-init/05_uoc.sql +++ b/src/main/resources/db/postgresql/upgrade/6.0.0/post-init/05_uoc.sql @@ -440,7 +440,7 @@ BEGIN IF 2 = (SELECT count(*) c FROM information_schema.columns WHERE table_name = 'usergroup' - AND (column_name = 'usertype' OR column_name = 'userinstitutionrole')) + AND column_name IN ('usertype', 'userinstitutionrole')) THEN UPDATE usergroup SET userinstitutionrole = usertype