CC-5387 : Copy cc_webstream_metadata to playout_history for 2.5 upgrade

making sure fields fit in the table
This commit is contained in:
Naomi 2013-10-10 12:23:36 -04:00
parent 26d191ca79
commit 8825151aa4
1 changed files with 3 additions and 3 deletions

View File

@ -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;