dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #07344
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2083: drop constraint name is unique on section table
------------------------------------------------------------
revno: 2083
committer: Tran Thanh Tri <Tran Thanh Tri@compaq>
branch nick: trunk
timestamp: Wed 2010-09-08 17:51:44 +0700
message:
drop constraint name is unique on section table
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/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-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 2010-09-04 08:47:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2010-09-08 10:51:44 +0000
@@ -168,7 +168,8 @@
executeSql( "ALTER TABLE translation ALTER value TYPE text" );
// orgunit shortname uniqueness
- executeSql( "ALTER TABLE organisationunit DROP CONSTRAINT organisationunit_shortname_key" );
+ executeSql( "ALTER TABLE organisationunit DROP CONSTRAINT organisationunit_shortname_key" );
+
// update dataset-dataentryform association and programstage -
// dataentryform association
@@ -178,6 +179,8 @@
executeSql( "DROP TABLE dataentryformassociation" );
}
+ executeSql( "ALTER TABLE section DROP CONSTRAINT section_name_key" );
+
log.info( "Tables updated" );
}