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:
parent
26d191ca79
commit
8825151aa4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue