1 // Utility developed by Jason Brooks for Medical Information Integration, www.mi-squared.com
4 This procedure will restore all records deleted on a given date/time) that are in the log table
6 First, you must look into the admin/logs screen and determine the date that the delete occured on.
8 Adjust the time accordingly
10 use the mysql monitor:
11 ========================================
15 select distinct comments from log where event like 'delete' and date >='<date> 00:00:00' and date <= '<date> 23:59:59';
16 ========================================
19 Verify data is correct
21 perl convert_logcomments.pl < outfile > restore.sql
23 verify insert statements
27 mysql <database> < restore.sql