dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34230
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17572: Analytics tables, dropping/recreating views around analytics table swapping to allow sql views to...
------------------------------------------------------------
revno: 17572
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-11-24 16:41:33 +0100
message:
Analytics tables, dropping/recreating views around analytics table swapping to allow sql views tor reference analytics tables
modified:
dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.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-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java'
--- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java 2014-03-18 08:10:10 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java 2014-11-24 15:41:33 +0000
@@ -166,7 +166,7 @@
{
final String sql = "DROP VIEW IF EXISTS " + statementBuilder.columnQuote( viewName );
- log.info( "Drop view SQL: " + sql );
+ log.debug( "Drop view SQL: " + sql );
jdbcTemplate.update( sql );
}
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java 2014-10-22 08:36:37 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java 2014-11-24 15:41:33 +0000
@@ -300,10 +300,14 @@
private void swapTables( List<AnalyticsTable> tables )
{
+ resourceTableService.dropAllSqlViews();
+
for ( AnalyticsTable table : tables )
{
tableManager.swapTable( table );
}
+
+ resourceTableService.createAllSqlViews();
}
/**