Is it possible to manipulate the value of a content item's updateDate property?
I'm performing a data migration of an older system, and want to maintain this property. I've tried setting it on the node, but the publish operation seems to override it. The code is approximately:
Document d = Document.MakeNew([...]);
d.UpdateDate = [...];
d.Publish(DataMigrationUser);
umbraco.library.UpdateDocumentCache(d.Id);
Is the only other alternative to manipulate the database? Would modifying cmsDocument.updateDate & cmsContentVersion.VersionDate cover it?
I'm pretty sure that UpdateDate is managed internally of the API. If you need a code-manageable date you should create a custom property on your document type, then you've got full control over it.
If you don't want users to edit it then you could make it a label data type :)
Manipulating 'UpdateDate'
Is it possible to manipulate the value of a content item's updateDate property?
I'm performing a data migration of an older system, and want to maintain this property. I've tried setting it on the node, but the publish operation seems to override it. The code is approximately:
Is the only other alternative to manipulate the database? Would modifying cmsDocument.updateDate & cmsContentVersion.VersionDate cover it?
(Sorry - the 'edit' button crashed) - Currently, it's always getting set as the date the .Publish() method is called
I'm pretty sure that UpdateDate is managed internally of the API. If you need a code-manageable date you should create a custom property on your document type, then you've got full control over it.
If you don't want users to edit it then you could make it a label data type :)
Hmm, if I were to wish to muck around with it, for the purpose of a data migration, which DB tables would I have to meddle with?
I assume:
is working on a reply...