Move anonymize.sql into git. [bug 620566]

This commit is contained in:
James Socol 2010-12-21 12:47:53 -05:00
Родитель 973acf18c7
Коммит d3bcc52ef6
2 изменённых файлов: 12 добавлений и 26 удалений

12
scripts/anonymize.sql Normal file
Просмотреть файл

@ -0,0 +1,12 @@
-- Does a quick anonymization of a SUMO database. Note that this does
-- not necessarily clear out all confidential information and should
-- not be considered approval to distribute this SUMO database.
-- Talk to jsocol if you have questions.
UPDATE auth_user SET
email = CONCAT('user',id,'@example.com'),
password = 'sha256$f538347e82$5098e89186fd307d4bb6fe29ac476e72cf96175617fa933a9bd6b3d89a8b0946'; -- 'testpass'
TRUNCATE notifications_eventwatch;
TRUNCATE django_session;

Просмотреть файл

@ -1,26 +0,0 @@
BEGIN;
-- Quick template
INSERT INTO `wiki_document` VALUES (NULL,'Template:Home page - Quick','en-US',NULL,NULL,'<section>\n<h1 id=\"w_new-to-firefox\">New to Firefox?</h1>\n<ul><li> <a href=\"/en-US/kb/Installing%20Firefox\">How to install Firefox</a>\n</li><li> <a href=\"/en-US/kb/How%20to%20set%20the%20home%20page\">How to set the home page</a>\n</li><li> <a href=\"/en-US/kb/Browsing%20basics\">Browsing basics</a>\n</li><li> <a href=\"/en-US/kb/Customizing%20Firefox%20with%20add-ons\">Customizing Firefox with add-ons</a>\n</li></ul>\n</section>\n<section>\n<h1 id=\"w_common-questions\">Common Questions</h1>\n<ul><li> <a href=\"/en-US/kb/Cookies\">How do I enable/disable cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I clear my caches?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I delete my cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is the pop-up blocker?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is Private Browsing?</a>\n</li></ul>\n</section>\n<section>\n<h1 id=\"w_need-more-personal-help\">Need More Personal Help?</h1>\n<p>If you can\'t find the answer you need, our community volunteers are ready to help you find a solution. <a href=\"/questions/new\">Ask your question here</a>.\n</p>\n</section>',4,'Template:home-page-left',1);
SET @doc_id = LAST_INSERT_ID();
INSERT INTO `wiki_revision` VALUES (NULL,@doc_id,'Home page template, shows on the left side of the home page.','<section>\r\n= New to Firefox? =\r\n* [[Installing Firefox|How to install Firefox]]\r\n* [[How to set the home page]]\r\n* [[Browsing basics]]\r\n* [[Customizing Firefox with add-ons]]\r\n</section>\r\n\r\n<section>\r\n= Common Questions =\r\n* [[Cookies|How do I enable/disable cookies?]]\r\n* [[Cookies|How do I clear my caches?]]\r\n* [[Cookies|How do I delete my cookies?]]\r\n* [[Cookies|What is the pop-up blocker?]]\r\n* [[Cookies|What is Private Browsing?]]\r\n</section>\r\n\r\n<section>\r\n= Need More Personal Help? =\r\nIf you can\'t find the answer you need, our community volunteers are ready to help you find a solution. [/questions/new Ask your question here].\r\n</section>','','2010-10-20 13:58:32','2010-10-20 13:58:51',NULL,'',47963,47963,1,NULL);
UPDATE wiki_document SET
current_revision_id = LAST_INSERT_ID()
WHERE id = @doc_id;
-- Explore template
INSERT INTO `wiki_document` VALUES (NULL,'Template:Home page - Explore','en-US',NULL,NULL,'<h1 id=\"w_explore-help-topics\">Explore Help Topics</h1>\n<section>\n<h2 id=\"w_topic-name-1\"><a href=\"/kb/tag/topic\">Topic Name 1</a></h2>\n<ul><li> <a href=\"/en-US/kb/Cookies\">How do I enable/disable cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I clear my caches?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I delete my cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is the pop-up blocker?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is Private Browsing?</a>\n</li></ul>\n</section>\n<section>\n<h2 id=\"w_topic-name-2\"><a href=\"/kb/tag/topic\">Topic Name 2</a></h2>\n<ul><li> <a href=\"/en-US/kb/Cookies\">How do I delete my cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is the pop-up blocker?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is Private Browsing?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I enable/disable cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I clear my caches?</a>\n</li></ul>\n</section>\n<section>\n<h2 id=\"w_topic-name-3\"><a href=\"/kb/tag/topic\">Topic Name 3</a></h2>\n<ul><li> <a href=\"/en-US/kb/Cookies\">How do I delete my cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is the pop-up blocker?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I enable/disable cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I clear my caches?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is Private Browsing?</a>\n</li></ul>\n</section>\n<section>\n<h2 id=\"w_topic-name-4\"><a href=\"/kb/tag/topic\">Topic Name 4</a></h2>\n<ul><li> <a href=\"/en-US/kb/Cookies\">How do I enable/disable cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is the pop-up blocker?</a>\n</li><li> <a class=\"new\" href=\"/en-US/kb/Cookies\">What is Private Browsing?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I clear my caches?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I delete my cookies?</a>\n</li></ul>\n</section>\n<section>\n<h2 id=\"w_topic-name-5\"><a href=\"/kb/tag/topic\">Topic Name 5</a></h2>\n<ul><li> <a href=\"/en-US/kb/Cookies\">How do I enable/disable cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is Private Browsing?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I delete my cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is the pop-up blocker?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I clear my caches?</a>\n</li></ul>\n</section>\n<section>\n<h2 id=\"w_topic-name-6\"><a href=\"/kb/tag/topic\">Topic Name 6</a></h2>\n<ul><li> <a href=\"/en-US/kb/Cookies\">What is the pop-up blocker?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I clear my caches?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I delete my cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">How do I enable/disable cookies?</a>\n</li><li> <a href=\"/en-US/kb/Cookies\">What is Private Browsing?</a>\n</li></ul>\n</section>',4,'Template:home-page-right',1);
SET @doc_id = LAST_INSERT_ID();
INSERT INTO `wiki_revision` VALUES (NULL,LAST_INSERT_ID(),'Home page template, shows on the right side of the home page.','= Explore Help Topics =\n\n<section>\n<h2>[/kb/tag/topic Topic Name 1]</h2>\n\n* [[Cookies|How do I enable/disable cookies?]]\n* [[Cookies|How do I clear my caches?]]\n* [[Cookies|How do I delete my cookies?]]\n* [[Cookies|What is the pop-up blocker?]]\n* [[Cookies|What is Private Browsing?]]\n</section>\n\n<section>\n<h2>[/kb/tag/topic Topic Name 2]</h2>\n\n* [[Cookies|How do I delete my cookies?]]\n* [[Cookies|What is the pop-up blocker?]]\n* [[Cookies|What is Private Browsing?]]\n* [[Cookies|How do I enable/disable cookies?]]\n* [[Cookies|How do I clear my caches?]]\n</section>\n\n<section>\n<h2>[/kb/tag/topic Topic Name 3]</h2>\n\n* [[Cookies|How do I delete my cookies?]]\n* [[Cookies|What is the pop-up blocker?]]\n* [[Cookies|How do I enable/disable cookies?]]\n* [[Cookies|How do I clear my caches?]]\n* [[Cookies|What is Private Browsing?]]\n</section>\n\n<section>\n<h2>[/kb/tag/topic Topic Name 4]</h2>\n\n* [[Cookies|How do I enable/disable cookies?]]\n* [[Cookies|What is the pop-up blocker?]]\n* [[Cookies|What is Private Browsing?]]\n* [[Cookies|How do I clear my caches?]]\n* [[Cookies|How do I delete my cookies?]]\n</section>\n\n<section>\n<h2>[/kb/tag/topic Topic Name 5]</h2>\n\n* [[Cookies|How do I enable/disable cookies?]]\n* [[Cookies|What is Private Browsing?]]\n* [[Cookies|How do I delete my cookies?]]\n* [[Cookies|What is the pop-up blocker?]]\n* [[Cookies|How do I clear my caches?]]\n</section>\n\n<section>\n<h2>[/kb/tag/topic Topic Name 6]</h2>\n\n* [[Cookies|What is the pop-up blocker?]]\n* [[Cookies|How do I clear my caches?]]\n* [[Cookies|How do I delete my cookies?]]\n* [[Cookies|How do I enable/disable cookies?]]\n* [[Cookies|What is Private Browsing?]]\n</section>\n','','2010-10-20 14:53:45','2010-10-20 14:54:02',NULL,'',47963,47963,1,NULL);
UPDATE wiki_document SET
current_revision_id = LAST_INSERT_ID()
WHERE id = @doc_id;
COMMIT;