add sql script to anonymize a live db for testing

This commit is contained in:
msquare 2017-11-19 10:32:51 +01:00
parent e9a28eb20e
commit 80606cdd8b
1 changed files with 10 additions and 0 deletions

10
db/anonymize.sql Normal file
View File

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