From 80606cdd8b4cca2c3b589644cf7f02db34689d70 Mon Sep 17 00:00:00 2001
From: msquare <msquare@notrademark.de>
Date: Sun, 19 Nov 2017 10:32:51 +0100
Subject: add sql script to anonymize a live db for testing

---
 db/anonymize.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 db/anonymize.sql

(limited to 'db/anonymize.sql')

diff --git a/db/anonymize.sql b/db/anonymize.sql
new file mode 100644
index 00000000..ba420d79
--- /dev/null
+++ b/db/anonymize.sql
@@ -0,0 +1,10 @@
+update User set Nick=concat('User',UID), Name=concat('Name',UID), Vorname=concat('Prename',UID), `Alter`=0, Telefon='', DECT='', Handy='', email=concat('engel', UID, '@engelsystem.de'), jabber='', Hometown='';
+update Messages set Text=concat('Message', id);
+update News set Betreff=concat('Subject', ID), Text=concat('News', ID);
+update NewsComments set Text=concat('Comment', ID);
+update Questions set Question=concat('Question', QID), Answer=concat('Answer', QID);
+update ShiftEntry set Comment='', freeload_comment='';
+update ShiftTypes set name=concat('Shifttype',id), description='Description';
+update AngelTypes set name=concat('Angeltype',id), description=concat('Description of angeltype',id);
+TRUNCATE TABLE LogEntries;
+
-- 
cgit v1.2.3-54-g00ecf

