v1.7.6 Migration
Documentation on how to migrate database to new format which was introduced in v1.7.6.
Last updated
Was this helpful?
Documentation on how to migrate database to new format which was introduced in v1.7.6.
Last updated
Was this helpful?
This is only for those updating bot from versions earlier than 1.7.6, if you've purchased bot when 1.7.6 was already released, skip this page.
Make sure to have backup of your json.sqlite
file in case something goes wrong.
This is only needed to be done just once for the first startup after you updated all the files.
Version 1.7.6 introduced the option to choose between 3 different database types. With this feature, the new format for storing data was required for a many reasons, but beside all those reasons, it was obvious that the new, more organised system, was needed.
I tried to make this transition as smooth as possible so for that reason I made database-actions
addon which simplifies this process a lot.
After updating files, make sure to reinstall modules with npm install
or just starting the bot depending on where you host bot.
To migrate data to new format you need to follow these steps:
Stop the bot and make sure you have a backup of json.sqlite
file
and move folder from the zip into the addons
folder
Open config.yml
from that folder and change startup_migrate
to true
Start the bot from your panel or command line and stay in console so you can see all the output -
1. If you're usually starting bot with pm2, don't do for the first time until you migrate to new format, start it with node index.js
and after everything is done, you can start with pm2 like usual
Migration should start after 15 seconds and you'll be spammed with
After migration is done, you should , wait for a 5-6 seconds and stop the bot
Remove the addon from addons
folder and restart the bot unless you want to , in that case leave the addon in folder
That's it! 🎉
If some of your data is missing or not transferred, open a Support Ticket so we can find & resolve the problem.