Back

How to alter attributes in collections

  • 0
  • Databases
  • Web
  • Cloud
Awais Alwaisy
26 Jun, 2024, 05:20

Hi there, unluckily I made avatar as string. I should have make it URL. I forgot. Now my URLs for avatar coming more than 156 char. For hot fix, I need to use link shortner. How can I change the data type or increase the character limit in existing collection.

TL;DR
Developers can create a new attribute, copy the data if needed, and delete the old attribute to alter attributes in collections. Unfortunately, updating attribute size and name directly is not possible. To fix the issue with avatar URLs being over 156 characters, developers can use a link shortener for a temporary solution.
darShan
26 Jun, 2024, 05:36

You'll need to create a new attribute, copy the data if required, and then delete the old attribute. You cannot update attribute size and name unfortunately.

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