diff --git a/modules/Analytics/Database/Migrations/2017-12-01-210000_add_analytics_podcasts_procedure.php b/modules/Analytics/Database/Migrations/2017-12-01-210000_add_analytics_podcasts_procedure.php index 18a9276e..b69bf127 100644 --- a/modules/Analytics/Database/Migrations/2017-12-01-210000_add_analytics_podcasts_procedure.php +++ b/modules/Analytics/Database/Migrations/2017-12-01-210000_add_analytics_podcasts_procedure.php @@ -50,8 +50,8 @@ class AddAnalyticsPodcastsProcedure extends Migration SET @current_hour = HOUR(@current_datetime); IF NOT `p_bot` THEN - INSERT INTO `{$prefix}analytics_podcasts`(`podcast_id`, `date`) - VALUES (p_podcast_id, @current_date) + INSERT INTO `{$prefix}analytics_podcasts`(`podcast_id`, `date`, `duration`, `bandwidth`) + VALUES (p_podcast_id, @current_date, `p_duration`, `p_filesize`) ON DUPLICATE KEY UPDATE `duration`=`duration`+`p_duration`, `bandwidth`=`bandwidth`+`p_filesize`,