← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17605: Script

 

------------------------------------------------------------
revno: 17605
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-11-27 16:47:19 +0100
message:
  Script
modified:
  resources/sql/div.sql


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'resources/sql/div.sql'
--- resources/sql/div.sql	2014-10-13 10:23:17 +0000
+++ resources/sql/div.sql	2014-11-27 15:47:19 +0000
@@ -103,6 +103,13 @@
   where ura.authority = 'ALL'
 );
 
+-- User roles with authority
+
+select ur.userroleid, ur.name
+from userrole ur
+inner join userroleauthorities ura on ur.userroleid=ura.userroleid 
+where ura.authority = 'ALL';
+
 -- Turn longitude/latitude around for organisationunit coordinates (adjust the like clause)
 
 update organisationunit set coordinates=regexp_replace(coordinates,'\[(.+?\..+?),(.+?\..+?)\]','[\2,\1]')