Skip to content

Weblate cannot update some database schemes when upgrading

There is an issue with the weblate instance upgrade (i don’t really know exactly what is the problem because I am unable to see the mysql logs), but it seems weblate cannot update the database schemes.

Steps to reproduce:

- cd /usr/local/share/weblate/

- ‘sudo -u weblate python3 ./manage.py makemigrations’ to make the file

- ‘sudo -u weblate python3 ./manage.py migrate’ to apply the changes. Changes look like are applied.

- ‘sudo -u weblate python3 ./manage.py migrate’ again, to check for new migrations. It says new migrations needed!

- ‘sudo -u weblate python3 ./manage.py makemigrations’ generates a new file with the same mysql query!!!.

what should happen:

- the second time we run ‘sudo -u weblate python3 ./manage.py migrate’ it should tell us that there are no migrations needed.

The query is adding some more options to the check table because of new checks available on upgrade.

Related issues

Original created by @emmapeel on 16183 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information