Skip to content

Commit

Permalink
No historical since 2020
Browse files Browse the repository at this point in the history
Fix #1652
  • Loading branch information
slobberbone committed Jan 10, 2020
1 parent a695a10 commit 2869597
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# NextDom Core Changelog
---
## 0.6.1
> ***Release Date : 10/01/2020***
>
> ***Statut : beta***
>
> ***Coverall : 17%***
#### FIXS
* Fix Plus d'historique depuis 01/01/2020
* [liste ici](https://github.com/NextDom/nextdom-core/milestone/26?closed=1)
---
## 0.6.0

> ***Release Date : XX/11/2019***
> ***Release Date : 27/11/2019***
>
> ***Statut : beta***
>
Expand Down
2 changes: 1 addition & 1 deletion assets/config/Nextdom_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.1
4 changes: 2 additions & 2 deletions src/Managers/HistoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ public static function byCmdIdDatetime($_cmd_id, $_startTime, $_endTime = null,
public static function archive()
{
global $NEXTDOM_INTERNAL_CONFIG;
$sql = 'DELETE FROM history WHERE `datetime` <= "2000-01-01 01:00:00" OR `datetime` >= "2020-01-01 01:00:00"';
$sql = 'DELETE FROM history WHERE `datetime` <= "2000-01-01 01:00:00"';
DBHelper::exec($sql);
$sql = 'DELETE FROM historyArch WHERE `datetime` <= "2000-01-01 01:00:00" OR `datetime` >= "2020-01-01 01:00:00"';
$sql = 'DELETE FROM historyArch WHERE `datetime` <= "2000-01-01 01:00:00"';
DBHelper::exec($sql);
$sql = 'DELETE FROM history WHERE `value` IS NULL';
DBHelper::exec($sql);
Expand Down

0 comments on commit 2869597

Please sign in to comment.