Migration
v1 -> v2
In v2 the database is now managed with Tortoise-ORM and aerich.
Steps
Backup the database. There are a number of ways you can do this, the easiest is
pg_dumpPull the latest
v1.xtag, check that tag and then run the bot. This step is vital to avoid data loss.Pull v2.x tag from the repository then check it out.
In the database uri in
config.pyreplacepostgresqlwithpostgresUpdate packages with
pipenv installRun
aerich updatein the root of the repo.Run the bot as normal.
Last updated
Was this helpful?