2 years ago
We use the native mysql database service, which is based on the latest mysql docker image.
We ask ourselves how Railway deals with a database upgrade.
Example: Previously mysql 8.2 was used and now mysql 8.3 is used in a new service. Does a migration step take place if we now attach the database volume to the new service?
Currently I rather assume that we choose a suitable mysql version and deploy it instead of using the latest one.
1 Replies
2 years ago
Railway doesn't do any data migrations in the sense you speak of, they are simply deploying the latest MySQL image with a volume for persistence, it may seem magical but nothing complex is going on with the database itself.
MySQL itself handles the version transitions and I'm sure the database has in built logic to make sure you can upgrade the database without any issues to your data, that's not something Railway is involved with.
As for using a specific fixed version of MySQL, you can remove the latest image source and then add back the image but this time with a version tag.