2.0.0 Upgrade Guide
v 1.1.4 -> 2.0.0 Upgrade Guide
Copy your settings.yml, permissions.yml, aliases.yml and errors.json to a safe place to help you configure the bot later, or in case you wish to downgrade.
If you are using SQLite for storage, copy your
databasefolder to a safe place for migration after you upgrade.
Update your Python version to 3.9 (https://www.python.org/downloads/) and ensure it is set as the system default. Use
python3 -Vto test on Linux and macOS or
py -Von Windows and ensure it displays 3.9 as the version.
After you have backed up your configuration files and databases, you will need to completely re-install ZeoBot as this is a significant upgrade. Download the latest release from MC-Market, and unzip it to a different folder. Make sure there are no traces of the old version in this folder.
If you are using SQLite, make sure the database type is set to SQLite in the configuration. Create a folder in the ZeoBot folder called
database. Paste all your database files here. If you are using PostgreSQL, make sure your database details are filled in the configuration.
Now, open the
migrationfolder, then open the
2.0.0folder and run the
python3 migrate_databases.pyfor macOS and Linux or
py -3.9 migrate_databases.pyfor Windows).
Make sure you run the migration script from the
If database migration fails, you will have to delete the databases in the case of SQLite or reset the database in the case of PostgreSQL.