Skip to content
Snippets Groups Projects
Commit e53f8192 authored by Benjamin Bellamy's avatar Benjamin Bellamy :speech_balloon: Committed by Yassine Doghri
Browse files

fix: correct percona compatibility issue

parent 3a492581
No related branches found
No related tags found
No related merge requests found
...@@ -64,8 +64,8 @@ class AnalyticsPodcastModel extends Model ...@@ -64,8 +64,8 @@ class AnalyticsPodcastModel extends Model
'`podcast_id`' => $podcastId, '`podcast_id`' => $podcastId,
'`date` >' => date('Y-m-d', strtotime('-1 year')), '`date` >' => date('Y-m-d', strtotime('-1 year')),
]) ])
->orderBy('`date`', 'ASC') ->groupBy('`labels`')
->groupBy('concat(month(`date`),"-",year(`date`))') ->orderBy('`labels`', 'ASC')
->findAll(); ->findAll();
cache()->save( cache()->save(
...@@ -131,8 +131,8 @@ class AnalyticsPodcastModel extends Model ...@@ -131,8 +131,8 @@ class AnalyticsPodcastModel extends Model
->where([ ->where([
'`podcast_id`' => $podcastId, '`podcast_id`' => $podcastId,
]) ])
->groupBy('concat(month(`date`),"-",year(`date`))') ->groupBy('`labels`')
->orderBy('`date`', 'ASC') ->orderBy('`labels`', 'ASC')
->findAll(); ->findAll();
cache()->save( cache()->save(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment