Promote Document Version Notes to Document Notes
- --The following script will promote document version notes
- --into document notes. This is useful when a destination system
- --supports notes on documents but does not support notes on
- --specific document versions.
- --
- --If you are using this script, you should inform the client that
- --Their version notes will no longer be attached to the version
- --as that is a limitation of the destination system.
- UPDATE
- __M_Common_Notes
- SET
- Final_Parent_Type = '__M_Documents_Digital_Files',
- Final_Parent_Id = Versions.Final_DocumentFile_Id
- FROM
- __M_Common_Notes Notes,
- __M_Documents_Digital_Files_Versions Versions
- WHERE 1=1
- AND Notes.Final_Parent_Type = '__M_Documents_Digital_Files_Versions'
- AND Notes.Final_Parent_Id = Versions.Id