if_,err=x.Exec("UPDATE "+rawTableName+" SET created_unix=? WHERE id=?",meta["CreatedUnix"],meta["ID"]);err!=nil{
if_,err=x.Exec("UPDATE "+rawTableName+" SET created_unix=? WHERE id=?",meta["CreatedUnix"],meta["ID"]);err!=nil{
log.Error(2,"Failed to reset 'created_unix': %v",err)
log.Error(2,"Failed to reset 'created_unix': %v",err)
}
}
}
}
switchrawTableName{
case"milestone":
if_,err=x.Exec("UPDATE "+rawTableName+" SET deadline_unix=?, closed_date_unix=? WHERE id=?",meta["DeadlineUnix"],meta["ClosedDateUnix"],meta["ID"]);err!=nil{
log.Error(2,"Failed to reset 'milestone.deadline_unix', 'milestone.closed_date_unix': %v",err)
}
}
}
}
// PostgreSQL needs manually reset table sequence for auto increment keys
// PostgreSQL needs manually reset table sequence for auto increment keys