Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: Don't change $updatedAt #7412

Open
2 tasks done
step135 opened this issue Jan 9, 2024 · 2 comments
Open
2 tasks done

🚀 Feature: Don't change $updatedAt #7412

step135 opened this issue Jan 9, 2024 · 2 comments
Labels
product / databases Fixes and upgrades for the Appwrite Database.

Comments

@step135
Copy link

step135 commented Jan 9, 2024

🔖 Feature description

There are some cases, for example when admin corrects some field in document or adds meta data, when $updatedAt shouldn't change. But there is no possibility to suppress the trigger.

🎤 Pitch

$updatedAt is not required to be changed every time when any document receives updates.

👀 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?

@stnguyen90 stnguyen90 added the product / databases Fixes and upgrades for the Appwrite Database. label Jan 10, 2024
@stnguyen90
Copy link
Contributor

@step135, thanks for raising this issue! 🙏🏼 We have discussed being able to set $createdAt and $updatedAt manually recently, especially since Migrations doesn't preserve these values.

@FranciscoKloganB
Copy link

FranciscoKloganB commented Jan 18, 2024

I've personally treated $createdAt and $updatedAt and most attributes prefixed by $ as Appwrite owned. I use my own createdAt, updatedAt and deletedAt attributes, the only $attr I am using from is $id to avoid referencing issues. It is not ideal, but it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

3 participants