dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21682
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10331: Removing outdated column
------------------------------------------------------------
revno: 10331
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-03-19 20:56:11 +0100
message:
Removing outdated column
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java
resources/sql/integritychecks.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 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2013-03-19 16:20:36 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2013-03-19 19:56:11 +0000
@@ -293,7 +293,6 @@
executeSql( "ALTER TABLE chart DROP COLUMN verticallabels" );
executeSql( "ALTER TABLE chart DROP COLUMN targetline" );
executeSql( "ALTER TABLE chart DROP COLUMN horizontalplotorientation" );
- executeSql( "ALTER TABLE chart ADD COLUMN targetline boolean NOT NULL DEFAULT false" );
executeSql( "ALTER TABLE chart ADD COLUMN hidesubtitle boolean NOT NULL DEFAULT false" );
executeSql( "ALTER TABLE chart DROP COLUMN monthsLastYear" );
@@ -394,7 +393,6 @@
executeSql( "update dataset set fieldcombinationrequired = false where fieldcombinationrequired is null" );
executeSql( "update chart set hidelegend = false where hidelegend is null" );
executeSql( "update chart set regression = false where regression is null" );
- executeSql( "update chart set targetline = false where targetline is null" );
executeSql( "update chart set hidesubtitle = false where hidesubtitle is null" );
executeSql( "update chart set userorganisationunit = false where userorganisationunit is null" );
executeSql( "update indicator set annualized = false where annualized is null" );
=== modified file 'resources/sql/integritychecks.sql'
--- resources/sql/integritychecks.sql 2012-11-23 14:57:04 +0000
+++ resources/sql/integritychecks.sql 2013-03-19 19:56:11 +0000
@@ -123,7 +123,7 @@
select * from categorycombo where categorycomboid not in (select distinct categorycomboid from categorycombos_categories);
--- Get category options with count of memberships in categories (should only be 1)
+-- Get category options with count of memberships in categories
select cc.categoryoptionid, co.name, (
select count(categoryoptionid) from categories_categoryoptions where categoryoptionid=cc.categoryoptionid )