Skip to content
Back

can't edit Attributes

  • 0
  • Databases
Darkhorse
7 Jun, 2023, 17:22

After setting attributes you can't make edit, for example let's say I choose for Strings to have 100 characters, it seem I can't change this later, neither can I change the name. Is this behaviour unpurpose, it seems weird?

TL;DR
The user is asking about how to set the length of fields in their database. They want to know if they can set a value for unlimited length. The response states that the length of a string is not editable without modifying the database table. This can be an expensive task that locks up the database. The feature to edit attributes was added in version 1.3 of the software, but the user is currently using version 1.1.2 on a self-hosted server. If using the cloud, they will need to wait for the cloud version to update to include this feature.
Binyamin
7 Jun, 2023, 17:25

This feature was added to version 1.3.0+

Binyamin
7 Jun, 2023, 17:26

If you're using the cloud you'll need wait, as of now the clouds uses version 1.1.2

Darkhorse
7 Jun, 2023, 17:27

I am on version 1.3. Self hosting digital ocean. This features isn't on version 1.3

Binyamin
7 Jun, 2023, 17:28

What version exactly

Darkhorse
7 Jun, 2023, 17:28

1.3.7

Drake
7 Jun, 2023, 17:31

Only some things are editable. Changing the length of a string requires modifying the database table. We've always limited this because doing something like this in production can be an expensive task that locks up that database

That said, we're working on making more things editable

Darkhorse
7 Jun, 2023, 17:33

Is it possible to set string to an unlimited value at least? That way you don't have to worry about something like this

Binyamin
7 Jun, 2023, 17:34

You can set bigger values yes,

Binyamin
7 Jun, 2023, 17:35

Dependes on the length you're setting Appwrite will create a different Text type attirbute.

Binyamin
7 Jun, 2023, 17:35

So set it to 16777216 to have unlimited one

Darkhorse
7 Jun, 2023, 17:36

Yes, I know I can set bigger values but there are many instances you don't actually know what length you want your string to be.

Maybe I want to pass a whole privacy policy in there, I don't know the length. How can I set a value

Binyamin
7 Jun, 2023, 17:37

What I do in case I have fields like you've said I'm using the MEDIUMTEXT one So I'll set the length to 66000 this will cover 99.0% of the use-cases

Darkhorse
7 Jun, 2023, 17:42

Ok

Darkhorse
7 Jun, 2023, 17:42

Thanks

Darkhorse
7 Jun, 2023, 17:42

Thanks

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