Advertisement
matthewpoer

SugarCRM Database Wipe 2

Apr 5th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 8.29 KB | None | 0 0
  1. delete from accounts;
  2. delete from accounts_audit;
  3. delete from accounts_bugs;
  4. delete from accounts_cases;
  5. delete from accounts_contacts;
  6. delete from accounts_cstm;
  7. delete from accounts_opportunities;
  8. delete from accounts_users_1_c;
  9. -- delete from acl_actions;
  10. -- delete from acl_fields;
  11. -- delete from acl_roles;
  12. -- delete from acl_roles_actions;
  13. -- delete from acl_roles_users;
  14. delete from address_book;
  15. delete from address_book_list_items;
  16. delete from address_book_lists;
  17. delete from bugs;
  18. delete from bugs_audit;
  19. delete from calls;
  20. delete from calls_contacts;
  21. delete from calls_leads;
  22. delete from calls_users;
  23. delete from campaign_log;
  24. delete from campaign_trkrs;
  25. delete from campaigns;
  26. delete from campaigns_audit;
  27. delete from cases;
  28. delete from cases_audit;
  29. delete from cases_bugs;
  30. delete from category_tree;
  31. -- delete from config;
  32. delete from contacts;
  33. delete from contacts_audit;
  34. delete from contacts_bugs;
  35. delete from contacts_cases;
  36. delete from contacts_cstm;
  37. delete from contacts_users;
  38. delete from contract_types;
  39. delete from contracts;
  40. delete from contracts_audit;
  41. delete from contracts_contacts;
  42. delete from contracts_opportunities;
  43. delete from contracts_products;
  44. delete from contracts_quotes;
  45. -- delete from currencies;
  46. -- delete from custom_fields;
  47. delete from document_revisions;
  48. delete from documents;
  49. delete from documents_accounts;
  50. delete from documents_bugs;
  51. delete from documents_cases;
  52. delete from documents_contacts;
  53. delete from documents_opportunities;
  54. delete from documents_products;
  55. delete from documents_quotes;
  56. delete from eapm;
  57. delete from email_addr_bean_rel;
  58. delete from email_addresses;
  59. delete from email_cache;
  60. delete from email_marketing;
  61. delete from email_marketing_prospect_lists;
  62. delete from email_templates;
  63. delete from emailman;
  64. delete from emails;
  65. delete from emails_beans;
  66. delete from emails_email_addr_rel;
  67. delete from emails_text;
  68. delete from expressions;
  69. -- delete from fields_meta_data;
  70. delete from folders;
  71. delete from folders_rel;
  72. delete from folders_subscriptions;
  73. delete from forecast_schedule;
  74. delete from forecasts;
  75. delete from fts_queue;
  76. delete from holidays;
  77. delete from import_maps;
  78. delete from inbound_email;
  79. delete from inbound_email_autoreply;
  80. delete from inbound_email_cache_ts;
  81. delete from job_queue;
  82. delete from kbcontents;
  83. delete from kbcontents_audit;
  84. delete from kbdocument_revisions;
  85. delete from kbdocuments;
  86. delete from kbdocuments_kbtags;
  87. delete from kbdocuments_views_ratings;
  88. delete from kbtags;
  89. delete from leads;
  90. delete from leads_audit;
  91. delete from linked_documents;
  92. delete from manufacturers;
  93. delete from meetings;
  94. delete from meetings_contacts;
  95. delete from meetings_leads;
  96. delete from meetings_users;
  97. delete from notes;
  98. delete from notifications;
  99. delete from notifications_audit;
  100. delete from oauth_consumer;
  101. delete from oauth_nonce;
  102. delete from oauth_tokens;
  103. delete from opportunities;
  104. delete from opportunities_audit;
  105. delete from opportunities_contacts;
  106. delete from outbound_email;
  107. delete from product_bundle_note;
  108. delete from product_bundle_notes;
  109. delete from product_bundle_product;
  110. delete from product_bundle_quote;
  111. delete from product_bundles;
  112. delete from product_categories;
  113. delete from product_product;
  114. delete from product_templates;
  115. delete from product_types;
  116. delete from products;
  117. delete from products_audit;
  118. delete from project;
  119. delete from project_resources;
  120. delete from project_task;
  121. delete from project_task_audit;
  122. delete from projects_accounts;
  123. delete from projects_bugs;
  124. delete from projects_cases;
  125. delete from projects_contacts;
  126. delete from projects_opportunities;
  127. delete from projects_products;
  128. delete from projects_quotes;
  129. delete from prospect_list_campaigns;
  130. delete from prospect_lists;
  131. delete from prospect_lists_prospects;
  132. delete from prospects;
  133. delete from quotas;
  134. delete from quotes;
  135. delete from quotes_accounts;
  136. delete from quotes_audit;
  137. delete from quotes_contacts;
  138. delete from quotes_opportunities;
  139. delete from relationships;
  140. delete from releases;
  141. delete from report_cache;
  142. delete from report_schedules;
  143. delete from roles;
  144. delete from roles_modules;
  145. delete from roles_users;
  146. delete from saved_reports;
  147. delete from saved_search;
  148. delete from schedulers;
  149. delete from schedulers_times;
  150. delete from session_active;
  151. delete from session_history;
  152. delete from shippers;
  153. delete from sugarfavorites;
  154. delete from sugarfeed;
  155. -- delete from systems;
  156. delete from tasks;
  157. delete from taxrates;
  158. delete from team_memberships;
  159. delete from team_notices;
  160. delete from team_sets;
  161. delete from team_sets_modules;
  162. delete from team_sets_teams;
  163. delete from teams;
  164. delete from timeperiods;
  165. delete from tracker;
  166. delete from tracker_perf;
  167. delete from tracker_queries;
  168. delete from tracker_sessions;
  169. delete from tracker_tracker_queries;
  170. delete from upgrade_history;
  171. delete from user_preferences;
  172. delete from users;
  173. delete from users_feeds;
  174. delete from users_holidays;
  175. delete from users_last_import;
  176. delete from users_password_link;
  177. delete from users_signatures;
  178. delete from vcals;
  179. -- delete from versions;
  180. delete from workflow;
  181. delete from workflow_actions;
  182. delete from workflow_actionshells;
  183. delete from workflow_alerts;
  184. delete from workflow_alertshells;
  185. delete from workflow_schedules;
  186. delete from workflow_triggershells;
  187. delete from worksheet;
  188.  
  189. INSERT INTO `email_templates` (`team_id`,`team_set_id`,`id`,`date_entered`,`date_modified`,`modified_user_id`,`created_by`,`published`,`name`,`description`,`subject`,`body`,`body_html`,`deleted`,`assigned_user_id`,`base_module`,`from_name`,`from_address`,`text_only`,`type`) VALUES ('d5016ab0-8c43-958d-b09a-4f738f313778','d5016ab0-8c43-958d-b09a-4f738f313778','9f7d9723-3cba-c25a-3c66-4f738f6b9487','2012-03-28 22:23:32','2012-03-28 22:23:32','1','1','off','Forgot Password email','This template is used to send a user a link to click to reset the user''s account password.','Reset your account password','
  190. You recently requested on $contact_user_pwd_last_changed to be able to reset your account password.
  191.  
  192. Click on the link below to reset your password:
  193.  
  194. $contact_user_link_guid','<div><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width="550" align=\"\"\"center\"\"\"><tbody><tr><td colspan=\"2\"><p>You recently requested on $contact_user_pwd_last_changed to be able to reset your account password. </p><p>Click on the link below to reset your password:</p><p> $contact_user_link_guid </p>  </td>         </tr><tr><td colspan=\"2\"></td>         </tr> </tbody></table> </div>',0,NULL,NULL,NULL,NULL,0,NULL);
  195. INSERT INTO `email_templates` (`team_id`,`team_set_id`,`id`,`date_entered`,`date_modified`,`modified_user_id`,`created_by`,`published`,`name`,`description`,`subject`,`body`,`body_html`,`deleted`,`assigned_user_id`,`base_module`,`from_name`,`from_address`,`text_only`,`type`) VALUES ('d5016ab0-8c43-958d-b09a-4f738f313778','d5016ab0-8c43-958d-b09a-4f738f313778','9ae24cb3-5f85-b989-089f-4f738f3d0e17','2012-03-28 22:23:32','2012-03-28 22:23:32','1','1','off','System-generated password email','This template is used when the System Administrator sends a new password to a user.','New account information','
  196. Here is your account username and temporary password:
  197. Username : $contact_user_user_name
  198. Password : $contact_user_user_hash
  199.  
  200. $config_site_url
  201.  
  202. After you log in using the above password, you may be required to reset the password to one of your own choice.','<div><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width="550" align=\"\"\"center\"\"\"><tbody><tr><td colspan=\"2\"><p>Here is your account username and temporary password:</p><p>Username : $contact_user_user_name </p><p>Password : $contact_user_user_hash </p><br><p>$config_site_url</p><br><p>After you log in using the above password, you may be required to reset the password to one of your own choice.</p>   </td>         </tr><tr><td colspan=\"2\"></td>         </tr> </tbody></table> </div>',0,NULL,NULL,NULL,NULL,0,NULL);
  203.  
  204. INSERT INTO `users` VALUES ('1','admin','$6$/gW5UGLV$JRR1LhhMOP31tZPtWGvhsBVga4AQMTnWO6x9UOLRj4dD9QgeatIdsqhiLFn3thc5OU.xIbS9VR03cqcZEUlGe1',0,'2013-04-02 12:46:19',NULL,1,'98a5b483-0182-96e3-c486-5143889a357e',NULL,'Administrator',1,0,1,'$1$02hSji1o$Z8E0x/hKFdy19HPDnyU2V1','2013-03-15 20:43:20','2013-04-02 12:46:19','1','','Administrator',NULL,NULL,NULL,NULL,NULL,NULL,'Active',NULL,NULL,NULL,NULL,NULL,'1','1',0,0,1,'Active',NULL,NULL,'',0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement