Back

Relationship attribute remove and added. Old documents don't updated

  • 0
  • Self Hosted
Şafak
12 May, 2024, 13:38

Self Hosted Appwrite 1.5.5

(Below attributes is a Relationship) (I rebuilt the containers after the error. down and up -d)

First I added an attribute called “blogCategory”, then I deleted this attribute. Then I added an attribute called 'blogCategory2'.

And voila... I can't update my old records anymore. It gives me an error and it says the old attribute name. I don't know if there is a debugging method for this, I'll give you a screenshot

TL;DR
Developers added and then removed the "blogCategory" attribute and added "blogCategory2" in the structure. Old records cannot be updated now due to the attribute name change. The issue may be related to caching and can be resolved by clearing the cache or restarting the server.
Şafak
12 May, 2024, 13:41

First Structure

TypeScript
[
    {
        "title": <string>,
        "content": <string>,
        "blogCategory": <realtionship>,
    }
]

Second Structure

TypeScript
[
    {
        "title": <string>,
        "content": <string>,
        "blogCategory2": <realtionship>,
    }
]
Şafak
12 May, 2024, 13:42

Relationship attribute remove and added. Old documents don't updated

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