From df816737d8041e540f866db16f7d32e8097683fa Mon Sep 17 00:00:00 2001 From: fryckbos Date: Tue, 29 Nov 2016 15:47:16 +0100 Subject: [PATCH] Sync from Bitbucket --- app/code/community/CoScale/Monitor/Model/Resource/Metric.php | 5 +++++ app/code/community/CoScale/Monitor/etc/config.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/code/community/CoScale/Monitor/Model/Resource/Metric.php b/app/code/community/CoScale/Monitor/Model/Resource/Metric.php index 250d830..80a6658 100644 --- a/app/code/community/CoScale/Monitor/Model/Resource/Metric.php +++ b/app/code/community/CoScale/Monitor/Model/Resource/Metric.php @@ -47,4 +47,9 @@ public function loadByKey(CoScale_Monitor_Model_Metric $metric, $key, $store) return $this; } + + public function truncate() { + $this->_getWriteAdapter()->query('TRUNCATE TABLE '.$this->getMainTable()); + return $this; + } } \ No newline at end of file diff --git a/app/code/community/CoScale/Monitor/etc/config.xml b/app/code/community/CoScale/Monitor/etc/config.xml index 5d571bb..111ba45 100644 --- a/app/code/community/CoScale/Monitor/etc/config.xml +++ b/app/code/community/CoScale/Monitor/etc/config.xml @@ -2,7 +2,7 @@ - 0.17.0 + 0.17.1