From d856113386ae02757cda512a3c37c457696e59e6 Mon Sep 17 00:00:00 2001 From: Naomi Date: Thu, 10 Oct 2013 12:07:03 -0400 Subject: [PATCH] CC-5387 : Copy cc_webstream_metadata to playout_history for 2.5 upgrade don't want to copy over useless webstream entries, those are taken from cc_webstream_metadata --- install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql b/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql index 2bf940359..eb3eabe52 100644 --- a/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql +++ b/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql @@ -4,7 +4,7 @@ INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', '2.5.0'); INSERT INTO cc_playout_history (file_id, starts, ends, instance_id) SELECT file_id, starts, ends, instance_id FROM cc_schedule -WHERE media_item_played = true; +WHERE file_id IS NOT NULL AND media_item_played = true; CREATE VIEW ws_history AS