From 48f11d403a6fcc0202323c693230d64df49f381b Mon Sep 17 00:00:00 2001 From: Naomi Date: Tue, 15 Oct 2013 15:33:13 -0400 Subject: [PATCH] CC-5420 : Upgrade: sql error incorrect view being created. --- install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 e2513fae3..f4373c2d6 100644 --- a/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql +++ b/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql @@ -21,9 +21,10 @@ LEFT JOIN cc_schedule AS sched ON sched.id = wm.instance_id LEFT JOIN cc_webstream AS ws ON sched.stream_id = ws.id +LEFT JOIN cc_show_instances as showinstances +ON sched.instance_id = showinstances.id LEFT JOIN cc_show AS show -ON sched.instance_id = show.id; - +ON showinstances.show_id = show.id; CREATE OR REPLACE FUNCTION migrateWebstreamHistory() RETURNS int4 AS $$