dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31982
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16341: Removed period_periodid_seq sequence
------------------------------------------------------------
revno: 16341
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-08-07 15:57:44 +0200
message:
Removed period_periodid_seq sequence
modified:
dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java
--
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-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2014-07-27 16:24:18 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/startup/TableAlteror.java 2014-08-07 13:57:44 +0000
@@ -130,9 +130,7 @@
executeSql( "ALTER TABLE program DROP COLUMN maxDaysAllowedInputData" );
executeSql( "ALTER TABLE period modify periodid int AUTO_INCREMENT" );
- executeSql( "CREATE SEQUENCE period_periodid_seq" );
- executeSql( "ALTER TABLE period ALTER COLUMN periodid SET DEFAULT NEXTVAL('period_periodid_seq')" );
-
+
executeSql( "UPDATE program SET programstage_dataelements=false WHERE displayInReports is null" );
executeSql( "ALTER TABLE programvalidation DROP COLUMN leftside" );
@@ -296,6 +294,9 @@
executeSql( "ALTER TABLE program_attributes DROP COLUMN allowdateinfuture" );
executeSql( "UPDATE program_attributes SET allowFutureDate='false' WHERE allowFutureDate is null" );
+ executeSql( "ALTER TABLE period ALTER COLUMN periodid DROP DEFAULT" );
+ executeSql( "DROP SEQUENCE period_periodid_seq" );
+
updateProgramStageList();
updateProgramAttributeList();
}