From 8825151aa4cd127fd3c6f6123d0bb962ac661bee Mon Sep 17 00:00:00 2001 From: Naomi Date: Thu, 10 Oct 2013 12:23:36 -0400 Subject: [PATCH] CC-5387 : Copy cc_webstream_metadata to playout_history for 2.5 upgrade making sure fields fit in the table --- install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 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 eb3eabe52..ca5a2211d 100644 --- a/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql +++ b/install_minimal/upgrades/airtime-2.5.0/data/upgrade.sql @@ -38,13 +38,13 @@ BEGIN returning id into hisid; insert into cc_playout_history_metadata (history_id, key, value) - values (hisid, 'track_title', r.title); + values (hisid, 'track_title', substring(r.title from 1 for 128)); insert into cc_playout_history_metadata (history_id, key, value) - values (hisid, 'artist_name', r.creator); + values (hisid, 'artist_name', substring(r.creator from 1 for 128)); insert into cc_playout_history_metadata (history_id, key, value) - values (hisid, 'showname', r.showname); + values (hisid, 'showname', substring(r.showname from 1 for 128)); END LOOP; return 1;