Back

When is Migration necessary?

  • 1
  • Self Hosted
SenZi
19 Dec, 2023, 11:11

Hi, I have a self hosted instance running on version 1.4.2. I want to upgrade to the latest version. In the 1.4.2 changelog it was mentioned to run the migrate command but after that i can't see a mention of it anywhere else. As a suggestion, it would be better if the upgrade command took care of migration when needed as well.

TL;DR
The user is asking when migration is necessary and if it's safe to run. Some users mention that migration may cause downtime and suggest taking backups before running it. Others mention that migration is usually required when upgrading to a minor version. The user also suggests that the upgrade command should handle migration.
Ernest
19 Dec, 2023, 12:02

Generally migration is required when upgrading to a minor version such as 1.3.8 to 1.4.x . I think there were some internal changes that required migration from 1.40 to 1.4.2. You can upgrade to the latest patch without migration since it's still 1.4.x

SenZi
19 Dec, 2023, 12:04

i've seen in <#564160731327758347> someone mentioning a migration is necesary in between, doesn't remember where, so just wanted to ask the staff.

Ernest
19 Dec, 2023, 12:55

You can run migration if you want to be really sure, though I don't think it's necessary

SenZi
19 Dec, 2023, 17:04

There's not issue in running it if it's not needed?

Ernest
19 Dec, 2023, 17:05

Yes

Ernest
19 Dec, 2023, 17:06

However, it's important to backup just in case

punti_z
20 Dec, 2023, 11:18

If changelogs dont explicitly say run migration then dont.

Ensure you backup, upgrade and check if everything works. If so, dont run migration, if something seems off, run it.

I upgraded from 1.4.5 to 1.4.13 and ran migration n my functions stopped executing. Not saying migration had anything to do with it but thats what happened. I am currently in the process of migrating data to a new server so be careful and can't stress this enough, take a back up

https://discord.com/channels/564160730845151244/1186081774216941668

SenZi
20 Dec, 2023, 15:31

I do have an automatic backup system setup since one update broke everything even in production.

SenZi
20 Dec, 2023, 15:33

It just doesn't give me the confidence to use appwrite when even upgrading can cause downtime. Taking backup and restoring when things go wrong is just too much downtime

D5
20 Dec, 2023, 15:58

I use to avoid that a parallel instance

D5
20 Dec, 2023, 15:58

First I migrate to the temp parallel instance, then I switch there and after upgrading everything I switch back to the original instance

D5
20 Dec, 2023, 15:59

I know it's not the best approach but 🤷‍♂️

SenZi
20 Dec, 2023, 16:00

that is still downtime

D5
20 Dec, 2023, 16:02

When you migrate using migrations feature there's not any downtime

D5
20 Dec, 2023, 16:06

Well, if you have lots of requests then yes, there's a small downtime between switches

D5
20 Dec, 2023, 16:07

But sincerely, I don't think that's bad at all. You can do it in less active hours. In my case I have 99.98% uptime

punti_z
20 Dec, 2023, 16:44

Since you mentioned migration, can you take a look

https://discord.com/channels/564160730845151244/1186936605806710815

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