← Back to team overview

dhis2-devs team mailing list archive

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

 

------------------------------------------------------------
revno: 17889
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-01-05 19:22:31 +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-11-27 15:47:19 +0000
+++ resources/sql/div.sql	2015-01-05 18:22:31 +0000
@@ -189,8 +189,15 @@
 where dv.periodid in (
   select pe.periodid
   from period pe
-  where pe.startdate < '1950-01-01'
-  or pe.enddate > '2050-01-01');
+  where pe.startdate < '1960-01-01'
+  or pe.enddate > '2020-01-01');
+
+-- Display events out of reasonable time range
+
+select *
+from programstageinstance psi
+where psi.executiondate < '1960-01-01'
+or psi.executiondate > '2020-01-01';
 
 -- Data value exploded view