Skip to content
Back

Change attribute without losing data

  • 0
  • Databases
  • Web
  • Cloud
KakashiMan
26 Jul, 2025, 16:14

Hey so I have a collection that has a "due" attribute now I have over 2K+ documents and noticed that I made it an integer instead of a float and we need it to be a float/double is there a way I could fix this without losing data, I'm obv asking if there is a straight way 🙂

TL;DR
To change the attribute type without losing data, you'll need to create a script that copies the old attribute into the new column. It cannot be done directly.
D5
26 Jul, 2025, 16:55

I think that unfortunately not. You will need to create a script that copies the old attribute into the new column

KakashiMan
26 Jul, 2025, 16:57

So will have to do this the hard way

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