Attempting to Override Values Set by SQLComputeCode
Class Audit.ModifiedTracker [ abstract ] {
/// Last time this record was saved
Property LastModifiedTime As %TimeStamp [ SqlComputeCode = {Set {*}=$zdt($zts,3)}, SqlComputed, SqlComputeOnChange = ("%%INSERT", "%%UPDATE") ];
/// User responsible for modifying record
Property LastModifiedUser As %String [ SqlComputeCode = {set {*} = ..GetModifiedUser()}, SqlComputed, SqlComputeOnChange = ("%%INSERT", "%%UPDATE") ];
Now, I would like to migrate some historical audit data stored somewhere else to this standard auditing class. However, I need to set these sqlComputed properties with their values from the other source... not the values that would be computed (i.e. always the current time, and the user running the migration code).
I would like to avoid direct global manipulation if possible... is there a good way to do what I'm looking to do?
Product version: Caché 2018.1