Upgrade Weblate

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

Follow these steps:

  • Only if upgrading from Weblate v2.2 to v2.3, execute these commands:

      $ cd installdir/apps/weblate
      $ examples/migrate-south --settings weblate.settings
  • Back up the MySQL database and the data/ directory:

      $ mysqldump -u root -p presently > weblate_backup.sql
      $ tar zcvf data.tar.gz installdir/apps/weblate/data
      $ installdir/ stop
  • Install the new version of Weblate and run the following commands:

      $ cd installdir
      $ rm -rf apps/weblate/data
      $ tar xzf data.tar.gz -C apps/weblate
      $ mysql -u root -p presently < weblate_backup.sql
  • Run the database migrations in this order:

      $ cd installdir/apps/weblate
      $ ./ makemigrations
      $ ./ migrate
      $ ./ migrate --fake accounts 0004_auto_20150108_1424
      $ ./ migrate --fake lang 0001_initial
      $ ./ migrate --fake trans 0018_auto_20150213_1447
      $ ./ migrate
      $ ./ setupgroups
      $ ./ setuplang

More information can be found in the official documentation.

Last modification April 8, 2020