From: Alexander Ebert Date: Thu, 10 Aug 2017 09:45:53 +0000 (+0200) Subject: Added default package id for legacy media providers X-Git-Tag: 3.1.0_Alpha_1~58 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d2bd076d4878ee3d0bbd1749156039d8f0637e2;p=GitHub%2FWoltLab%2FWCF.git Added default package id for legacy media providers --- diff --git a/com.woltlab.wcf/update_3.1_3.sql b/com.woltlab.wcf/update_3.1_3.sql index d2fa2bcad1..0b934662d5 100644 --- a/com.woltlab.wcf/update_3.1_3.sql +++ b/com.woltlab.wcf/update_3.1_3.sql @@ -1,6 +1,6 @@ -- remove default media providers (they'll be re-added later during the upgrade) DELETE FROM wcf1_bbcode_media_provider WHERE title IN ('YouTube', 'YouTube Playlist', 'Vimeo', 'Clipfish', 'Veoh', 'DailyMotion', 'github gist', 'Soundcloud', 'Soundcloud set'); -UPDATE wcf1_bbcode_media_provider SET name = CONCAT('com.woltlab.wcf.generic', providerID); +UPDATE wcf1_bbcode_media_provider SET name = CONCAT('com.woltlab.wcf.generic', providerID), packageID = 1; ALTER TABLE wcf1_bbcode_media_provider ADD UNIQUE KEY name (name, packageID); DROP TABLE IF EXISTS wcf1_contact_option;