ALTER TABLE playlists
    ADD COLUMN playlist_name VARCHAR(255) NOT NULL DEFAULT 'Main IPTV' AFTER device_id,
    ADD COLUMN enabled TINYINT(1) NOT NULL DEFAULT 1 AFTER output_format;

ALTER TABLE playlists
    DROP INDEX uniq_device_playlist,
    ADD INDEX idx_device_enabled (device_id, enabled);
