summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/upgrade/1.3/migrate_dbstats.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/upgrade/1.3/migrate_dbstats.py b/tools/upgrade/1.3/migrate_dbstats.py
index 3f3a02721..7a330cc99 100755
--- a/tools/upgrade/1.3/migrate_dbstats.py
+++ b/tools/upgrade/1.3/migrate_dbstats.py
@@ -258,6 +258,14 @@ def _restructure():
logger.info("Successfully restructured reason data")
return True
+ logger.info("Updating recent interactions")
+ for newint in new_models.Interaction.objects.recent():
+ try:
+ newint.save()
+ except:
+ logger.error("Failed to set current interaction %s for %s" %
+ (newint.id, newint.client.name), exc_info=1)
+
if __name__ == '__main__':
Bcfg2.Logger.setup_logging('bcfg2-report-collector',