[BUGIFX] RTEmagic upgrade wizard: missing attributes

When the RTE creates a magic images it uses data-* attributes
to keep a reference to the original FAL record. The upgrade
wizard migrates the images, creates the sys_file entries but
does not add the data-* attributes.

Resolves: #49733
Releases: 6.1, 6.2
Change-Id: Ib483355336d1331892920ada847850a61c35a3af
Reviewed-on: https://review.typo3.org/22019
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Markus Klein
Tested-by: Markus Klein
[BUGFIX] Make DBgetDelete() update tstamp on delete by update

If told to do so by TCA ContentObjectRenderer::DBgetDelete()
will not immediately delete a row but mark it as deleted.
This change updates the tstamp (if that column is configured)
for that "updated" row as well, like on a regular update.

Fixes: #47354
Releases: 6.2, 6.1
Change-Id: I61b9ce7d8608b73cfb974e79d2f9f59e6dc3547a
Reviewed-on: https://review.typo3.org/20024
Tested-by: Dmitry Dulepov
Reviewed-by: Dmitry Dulepov
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein