๐ Hey everyone! I'm facing an issue with PayloadCMS and could really use some help. Here's what happened: I added a new not-nullable field to one of my tables, but when I saved the changes, it ended up deleting a significant number of records and associated data. ๐
I'm really worried about this data loss and I want to find a solution to prevent it. I tried setting the field as optional, adding default values to the existing records, and then changing it to required, but that didn't work either. The records were still deleted. ๐ข
If anyone has experience with PayloadCMS or a similar situation, I'd greatly appreciate your guidance. How can I add this new field without losing any data? Is there a recommended approach or best practice for handling this kind of situation?
Please share any tips, suggestions, or recommended tools/scripts that can help me safely add the new field while preserving my existing data. Thank you so much for your support! ๐