ALTER TABLE `achievements`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `achievements` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `catalogue_collectables`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `catalogue_collectables` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `catalogue_items`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `catalogue_items` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `catalogue_packages`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `catalogue_packages` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `catalogue_pages`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `catalogue_pages` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_alerts`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_alerts` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_forum_replies`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_forum_replies` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_forum_threads`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_forum_threads` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_guestbook_entries`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_guestbook_entries` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_minimail`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_minimail` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_recommended`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_recommended` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_stickers`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_stickers` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_stickers_catalogue`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_stickers_catalogue` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `cms_stickers_categories`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `cms_stickers_categories` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `external_texts`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `external_texts` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `games_maps`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `games_maps` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `games_player_spawns`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `games_player_spawns` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `games_ranks`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `games_ranks` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `groups_details`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `groups_details` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `groups_edit_sessions`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `groups_edit_sessions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `groups_memberships`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `groups_memberships` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `homes_details`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `homes_details` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `homes_edit_sessions`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `homes_edit_sessions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `homes_ratings`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `homes_ratings` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `housekeeping_audit_log`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `housekeeping_audit_log` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `items`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `items` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `items_definitions`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `items_definitions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `items_moodlight_presets`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `items_moodlight_presets` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `items_pets`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `items_pets` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `items_photos`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `items_photos` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `items_teleporter_links`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `items_teleporter_links` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `messenger_categories`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `messenger_categories` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `messenger_friends`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `messenger_friends` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `messenger_messages`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `messenger_messages` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `messenger_requests`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `messenger_requests` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `public_items`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `public_items` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rank_badges`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rank_badges` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rank_fuserights`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rank_fuserights` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `recycler_rewards`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `recycler_rewards` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms_ads`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms_ads` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms_bans`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms_bans` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms_bots`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms_bots` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms_categories`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms_categories` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms_events`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms_events` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms_models`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms_models` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `rooms_rights`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `rooms_rights` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `room_chatlogs`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `room_chatlogs` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `settings`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `settings` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `settings_effects`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `settings_effects` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `site_articles`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `site_articles` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `soundmachine_disks`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `soundmachine_disks` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `soundmachine_playlists`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `soundmachine_playlists` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `soundmachine_songs`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `soundmachine_songs` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `soundmachine_tracks`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `soundmachine_tracks` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_achievements`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_achievements` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_badges`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_badges` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_bans`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_bans` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_club_gifts`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_club_gifts` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_effects`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_effects` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_ip_logs`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_ip_logs` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_mutes`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_mutes` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_referred`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_referred` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_room_favourites`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_room_favourites` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_room_votes`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_room_votes` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_tags`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_tags` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `users_wardrobes`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `users_wardrobes` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `vouchers`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `vouchers` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `vouchers_history`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `vouchers_history` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `vouchers_items`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `vouchers_items` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `wordfilter`DEFAULT  CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `wordfilter` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

SET FOREIGN_KEY_CHECKS = 0; 
TRUNCATE `games_played_history`;
TRUNCATE `groups_details`;
TRUNCATE `groups_memberships`;
TRUNCATE `groups_edit_sessions`;
TRUNCATE `homes_details`;
TRUNCATE `homes_edit_sessions`;
TRUNCATE `homes_ratings`;
TRUNCATE `cms_guestbook_entries`;
TRUNCATE `cms_stickers`;
TRUNCATE `items`;
TRUNCATE `items_pets`;
TRUNCATE `items_photos`;
TRUNCATE `items_teleporter_links`;
TRUNCATE `items_moodlight_presets`;
TRUNCATE `messenger_categories`;
TRUNCATE `messenger_friends`;
TRUNCATE `messenger_messages`;
TRUNCATE `messenger_requests`;
TRUNCATE `rooms_bans`;
TRUNCATE `rooms_rights`;
TRUNCATE `room_chatlogs`;
TRUNCATE `soundmachine_disks`;
TRUNCATE `soundmachine_playlists`;
TRUNCATE `soundmachine_songs`;
TRUNCATE `soundmachine_tracks`;
TRUNCATE `users_club_gifts`;
TRUNCATE `users_tags`;
TRUNCATE `users_bans`;
TRUNCATE `users_mutes`;
TRUNCATE `users_achievements`;
TRUNCATE `users_effects`;
TRUNCATE `users_referred`;
TRUNCATE `users_wardrobes`;
TRUNCATE `users_ip_logs`;
TRUNCATE `users_tutorial_progress`;
TRUNCATE `users_statistics`;
TRUNCATE `users_room_votes`;
DELETE FROM `users_badges`;
DELETE FROM `users`;
TRUNCATE `settings`;
TRUNCATE `site_articles`;
TRUNCATE `vouchers`;
TRUNCATE `vouchers_history`;
TRUNCATE `vouchers_items`;
TRUNCATE `cms_minimail`;
TRUNCATE `cms_recommended`;
TRUNCATE `cms_forum_threads`;
TRUNCATE `users_transactions`;
TRUNCATE `rooms_events`;
TRUNCATE `room_visits`;
TRUNCATE `users_room_favourites`;
TRUNCATE `infobus_polls_answers`;
TRUNCATE `infobus_polls`;
ALTER TABLE `cms_forum_threads` AUTO_INCREMENT=1;
TRUNCATE `cms_forum_replies`;
TRUNCATE `cms_forums_read_replies`;
ALTER TABLE `cms_forum_replies` AUTO_INCREMENT=1;
ALTER TABLE `cms_minimail` AUTO_INCREMENT=1;
TRUNCATE `cms_alerts`;
ALTER TABLE `cms_alerts` AUTO_INCREMENT=1;
UPDATE `catalogue_collectables` SET `expiry` = '-1' WHERE `catalogue_collectables`.`store_page` = 51;
UPDATE `catalogue_collectables` SET `expiry` = '-1' WHERE `catalogue_collectables`.`store_page` = 93;
UPDATE `catalogue_collectables` SET `current_position` = '0' WHERE `catalogue_collectables`.`store_page` = 51;
UPDATE `catalogue_collectables` SET `current_position` = '0' WHERE `catalogue_collectables`.`store_page` = 93;
DELETE FROM rooms WHERE id >= 1000;
ALTER TABLE `rooms` AUTO_INCREMENT=1000;
ALTER TABLE `users` AUTO_INCREMENT=1;
ALTER TABLE `groups_details` AUTO_INCREMENT=1;
ALTER TABLE `cms_stickers` AUTO_INCREMENT=1;
ALTER TABLE `users_effects` AUTO_INCREMENT=1;
ALTER TABLE `items` AUTO_INCREMENT=1;
ALTER TABLE `users` AUTO_INCREMENT=1;
ALTER TABLE `site_articles` AUTO_INCREMENT=1; 
TRUNCATE `site_articles_categories`;
SET FOREIGN_KEY_CHECKS = 1; 