In v2 the database is now managed with Tortoise-ORM and aerich.
Backup the database. There are a number of ways you can do this, the easiest is
Pull the latest
v1.x tag, 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
Update packages with
aerich update in the root of the repo.
Run the bot as normal.