Compact css tweak
[openemr.git] / contrib / util / undelete_from_log / README.TXT
blobe5494a388aaee3141079b9824acf4008d56aed34
1 // Utility developed by Jason Brooks for Medical Information Integration, www.mi-squared.com
2 // 
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 ========================================
12 mysql <database>
14 tee <outfile>;
15 select distinct comments from log where event like 'delete' and  date >='<date> 00:00:00' and date <= '<date> 23:59:59';
16 ========================================
17 exit mysql monitor
19 Verify data is correct
21 perl convert_logcomments.pl < outfile  > restore.sql
23 verify insert statements
25 import data:
27 mysql <database> < restore.sql