utopia-php/database

๐Ÿš€ Feature: Allow value for createdAt & updatedAt on create/update Document

fliitor opened this issue ยท 3 comments

๐Ÿ”– Feature description

This fields auto generate on insert / update

It can be usefull to force them via data like

{
...otherFields,
"$createdAt": "string or timestamp"
}

๐ŸŽค Pitch

In case of migration for others platform, without this we need to inject data directly on MariaDB, or we'll loose this information or if we simply need to change it for any other reason

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

๐Ÿข Have you read the Code of Conduct?

I let it autogenerate on update. There are bound to be cases where it's necessary, but having it on hand at the time of creation already solves a lot of needs.

TODO if PR accepted, modify documentation to replicate this change

Thank you for your PR.

Our team will review it ASAP.

This can be close because it's already implemented