fix(db-*): add delete version id for non-mongodb
Fixes #10526
What?
updateVersion throws error at deleting before version of draft.
Why?
When triggers db.updateVersion with non-mongodb environment, saveVersion in payload/src/versions/saveVersions.ts doesn't remove id in versionData.
How?
Add delete versionData.id for non-mongodb environments.
Ideally we would have a test along with this change. @SimYunSup are you able to add an int test to test/versions/int.spec.ts before I merge this?
@DanRibbens I'll add test within 2 days.
@DanRibbens Is there any thing I have to update on this?
🚀 This is included in version v3.54.0