Created
March 4, 2019 19:52
-
-
Save riquellopes/27eca8dd775916753e42e11da65a1c41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
SET @common_hash_secret=rand(); | |
SET FOREIGN_KEY_CHECKS=0; | |
TRUNCATE `addonlogs`; | |
TRUNCATE `api_auth_tokens`; | |
TRUNCATE `approvals`; | |
TRUNCATE `auth_group`; | |
TRUNCATE `auth_group_permissions`; | |
TRUNCATE `auth_message`; | |
TRUNCATE `auth_permission`; | |
TRUNCATE `auth_user_groups`; | |
TRUNCATE `auth_user_user_permissions`; | |
TRUNCATE `auth_user`; | |
TRUNCATE `cache`; | |
TRUNCATE `cake_sessions`; | |
TRUNCATE `collections_tokens`; | |
TRUNCATE `django_admin_log`; | |
TRUNCATE `django_session`; | |
TRUNCATE `django_site`; | |
TRUNCATE `download_counts`; | |
TRUNCATE `eventlog`; | |
TRUNCATE `facebook_data`; | |
TRUNCATE `facebook_detected`; | |
TRUNCATE `facebook_favorites`; | |
TRUNCATE `facebook_sessions`; | |
TRUNCATE `facebook_users`; | |
TRUNCATE `favorites`; | |
TRUNCATE `global_stats`; | |
TRUNCATE `hubrsskeys`; | |
TRUNCATE `log_activity`; | |
TRUNCATE `log_activity_addon`; | |
TRUNCATE `log_activity_user`; | |
TRUNCATE `piston_consumer`; | |
TRUNCATE `piston_nonce`; | |
TRUNCATE `piston_token`; | |
TRUNCATE `reviewratings`; | |
TRUNCATE `reviews_moderation_flags`; | |
TRUNCATE `sphinx_index_feed_tmp`; | |
TRUNCATE `stats_addons_collections_counts`; | |
TRUNCATE `stats_collections`; | |
TRUNCATE `stats_collections_counts`; | |
TRUNCATE `stats_collections_share_counts`; | |
TRUNCATE `stats_collections_share_counts_totals`; | |
TRUNCATE `stats_contributions`; | |
TRUNCATE `stats_share_counts`; | |
TRUNCATE `stats_share_counts_totals`; | |
TRUNCATE `subscription_events`; | |
TRUNCATE `update_counts`; | |
TRUNCATE `users_versioncomments`; | |
TRUNCATE `versioncomments`; | |
DELETE FROM `collections` WHERE `listed` = "0"; | |
DELETE FROM `addons_users` WHERE `listed` = "0"; | |
DELETE FROM `config` WHERE `value` = "emailchange_secret"; | |
UPDATE `compatibility_reports` SET `client_os` = NULL, `comments` = NULL, `client_ip` = INET_NTOA(RAND()*1000000000); | |
UPDATE `versions` SET `approvalnotes` = NULL; | |
UPDATE `reviews` SET `ip_address` = INET_NTOA(RAND()*1000000000); | |
UPDATE `collections` SET `downloads` = ROUND(RAND()*1000000), `weekly_subscribers` = ROUND(RAND()*1000000), `monthly_subscribers` = ROUND(RAND()*1000000); | |
UPDATE `blacklisted_guids` SET `comments` = NULL; | |
UPDATE `addons` SET `nominationmessage` = NULL, `paypal_id` = NULL, `charity_id` = NULL, `average_daily_downloads` = ROUND(RAND()*1000000), `average_daily_users` = ROUND(RAND()*1000000), `total_contributions` = ROUND(RAND()*1000000) WHERE id NOT IN(556, 889); | |
UPDATE `users` SET `firstname` = NULL, `lastname` = NULL, `password` = NULL, `confirmationcode` = NULL, `resetcode` = NULL, `resetcode_expires` = NULL, `notes` = NULL, `last_login_ip` = NULL, `last_login_ip` = NULL, `last_login_attempt` = NULL, `last_login_attempt_ip` = NULL, `failed_login_attempts` = NULL, `email` = CONCAT(id, '@example.com'), `username` = CONCAT('_user_', id), `nickname` = CONCAT('_user_', id); | |
SET FOREIGN_KEY_CHECKS=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment