AiJiNanProject/db/20200224_mxy.sql
小黄狗横扫士力架 bfc6a73c2f first commit
2022-12-28 09:45:16 +08:00

13 lines
334 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ALTER TABLE `live_scene_record`
ADD COLUMN `record_type` tinyint(1) NULL DEFAULT 0 COMMENT '回顾类型0直播时移1m3u82mp43.快速剪辑' AFTER `tenant_id`;
UPDATE live_scene_record
SET record_type = CASE
WHEN uri LIKE '%.m3u8' THEN
1
WHEN uri LIKE '%.mp3' THEN
2
WHEN uri LIKE '%.mp4' THEN
2
else 0
END