import_sytem_events

<?php
db_set_active('mtga');
$result=db_query("select * from {artistworks_system_events} where uid>18");
db_set_active();

while ($row=db_fetch_array($result)) {
unset($row['eid']);

$newUID = db_result(db_query("select newID from {artistworks_migration} where oldID=%d and type='user' and site='mtga'",$row['uid']));

//db_query("insert into {artistworks_system_events} (uid, event_type, severity, link, timestamp, message) values (%d,%d,%d,'%s',%d,'%s')",$newUID,$row['event_type'],$row['severity'],$row['link'],$row['timestamp'],$row['message']);
}

?>