Back

Database

  • 0
  • Flutter
Joshima
29 Sep, 2023, 21:11

so i just wanna ask one thing that sometimes if i add some new feature in my app and if it requires any new attribute and i add it and it doesnt work until i delete everything like basically reset but how would i be able to that when the app is in production.

TL;DR
The user is asking for clarification on how adding attributes to a database affects previous documents. They are also concerned about adding new features to their app that require new attributes, and experiencing issues that can only be resolved by resetting everything. They are unsure how to handle this in a production app. Solution: When adding attributes to a database, previous documents will be null unless the attribute is added as a list. To avoid issues when adding new features and attributes to an app in production, you can use database migration techniques. This allows you to make changes to the database schema without losing existing data.
frankenstein
29 Sep, 2023, 21:38

If you add an attribute then the previous docs will be null unless you are adding a list

Joshima
1 Oct, 2023, 11:36

i didnt quite understand this , could you please elaborate

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more