INSERT IGNORE INTO `level_permissions`
  SELECT
    level_id as `level_id`,
    'movie' as `type`,
    'download' as `name`,
    1 as `value`
FROM `levels` WHERE `type` IN('user','moderator','admin');

CREATE TABLE `wallet_recharge` (
  `recharge_id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `amount` decimal(10,2) NOT NULL,
  `apple_id` VARCHAR(255) NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
   PRIMARY KEY (`recharge_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;


ALTER TABLE `slideshows` ADD `type` TINYINT(1) NOT NULL DEFAULT '1' AFTER `order`, ADD `button1_type` VARCHAR(10) NOT NULL DEFAULT 'both' AFTER `type`, ADD `button2_type` VARCHAR(10) NOT NULL DEFAULT 'both' AFTER `button1_type`;

INSERT INTO `settings` (`name`, `value`) VALUES
('users_dislike', '0'),
('users_favourite', '0'),
('users_featuredlabel', '1'),
('users_follow', '0'),
('users_followers', '0'),
('users_hotLabel', '1'),
('users_like', '0'),
('users_rating', '0'),
('users_share', '0'),
('users_sponsoredLabel', '1'),
('users_views', '0'),
('videos_datetime', '1'),
('videos_dislike', '0'),
('videos_favourite', '0'),
('videos_featuredlabel', '1'),
('videos_hotLabel', '1'),
('videos_like', '0'),
('videos_playlist', '1'),
('videos_rating', '0'),
('videos_share', '0'),
('videos_sponsoredLabel', '1'),
('videos_username', '0'),
('videos_views', '1'),
('videos_watchlater', '1'),
('audio_browse_dislike', '0'),
('audio_browse_favourite', '0'),
('audio_browse_like', '0'),
('audio_browse_playcount', '0'),
('audio_browse_share', '0'),
('channels_browse_datetime', '0'),
('channels_browse_dislike', '0'),
('channels_browse_favourite', '0'),
('channels_browse_featuredlabel', '1'),
('channels_browse_hotLabel', '1'),
('channels_browse_like', '0'),
('channels_browse_rating', '0'),
('channels_browse_share', '0'),
('channels_browse_sponsoredLabel', '1'),
('channels_browse_subscribe', '0'),
('channels_browse_subscribecount', '0'),
('channels_browse_username', '0'),
('channels_browse_videoscount', '0'),
('channels_browse_views', '0'),
('blogs_browse_datetime', '0'),
('blogs_browse_description', '0'),
('blogs_browse_dislike', '0'),
('blogs_browse_favourite', '0'),
('blogs_browse_featuredlabel', '1'),
('blogs_browse_hotLabel', '1'),
('blogs_browse_like', '0'),
('blogs_browse_rating', '0'),
('blogs_browse_share', '0'),
('blogs_browse_sponsoredLabel', '1'),
('blogs_browse_tags', '0'),
('blogs_browse_username', '0'),
('blogs_browse_views', '0'),
('playlists_browse_datetime', '0'),
('playlists_browse_dislike', '0'),
('playlists_browse_favourite', '0'),
('playlists_browse_featuredlabel', '1'),
('playlists_browse_hotLabel', '1'),
('playlists_browse_like', '0'),
('playlists_browse_rating', '0'),
('playlists_browse_share', '0'),
('playlists_browse_sponsoredLabel', '1'),
('playlists_browse_username', '0'),
('playlists_browse_videoscount', '1'),
('playlists_browse_views', '0'),
('artists_browse_dislike', '0'),
('artists_browse_favourite', '0'),
('artists_browse_like', '0'),
('artists_browse_rating', '0'),
('artists_browse_share', '0'),
('artists_browse_views', '0') ON DUPLICATE KEY UPDATE `value` = VALUES (value);