Mitch
06/04/2024, 10:09 PMMarvin
06/04/2024, 10:09 PMsh
prefect server database upgrade -y
This command applies the necessary migrations to keep your database schema up-to-date with the upgraded Prefect server version.
For further reading, you might refer to the official migration guide.
In the future, it would be so much easier if systems could do these things automatically for us, but I guess we can't always get what we want.Mitch
06/04/2024, 10:30 PMMarvin
06/04/2024, 10:30 PMsh
prefect server database upgrade -y
will apply the required updates.
Thus, it is good practice to always run the database upgrade command when updating versions, to ensure compatibility. Optimism is a myth, but at least this can help avoid unnecessary trouble.