diff --git a/scripts/anonymize.sql b/scripts/anonymize.sql new file mode 100644 index 000000000..4c83727d8 --- /dev/null +++ b/scripts/anonymize.sql @@ -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; diff --git a/scripts/post-migration.sql b/scripts/post-migration.sql deleted file mode 100644 index 9cfab6255..000000000 --- a/scripts/post-migration.sql +++ /dev/null @@ -1,26 +0,0 @@ -BEGIN; - --- Quick template -INSERT INTO `wiki_document` VALUES (NULL,'Template:Home page - Quick','en-US',NULL,NULL,'
\n

New to Firefox?

\n\n
\n
\n

Common Questions

\n\n
\n
\n

Need More Personal Help?

\n

If you can\'t find the answer you need, our community volunteers are ready to help you find a solution. Ask your question here.\n

\n
',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.','
\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
\r\n\r\n
\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
\r\n\r\n
\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
','','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,'

Explore Help Topics

\n
\n

Topic Name 1

\n\n
\n
\n

Topic Name 2

\n\n
\n
\n

Topic Name 3

\n\n
\n
\n

Topic Name 4

\n\n
\n
\n

Topic Name 5

\n\n
\n
\n

Topic Name 6

\n\n
',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
\n

[/kb/tag/topic Topic Name 1]

\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
\n\n
\n

[/kb/tag/topic Topic Name 2]

\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
\n\n
\n

[/kb/tag/topic Topic Name 3]

\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
\n\n
\n

[/kb/tag/topic Topic Name 4]

\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
\n\n
\n

[/kb/tag/topic Topic Name 5]

\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
\n\n
\n

[/kb/tag/topic Topic Name 6]

\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
\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;