Unfortunately the only versioning code that can "properly" add data- blocks is not run when linking or appending (`do_versions_after_setup` has details). The versioning has to be done manually for this case. Fortunately that is simple since the versioning function already just operators on a main database.