generated from srnyx/plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Data storage
srnyx edited this page Jun 21, 2024
·
4 revisions
Migrating between storage methods ↑
- Stop the server
- Duplicate the
storage.yml
file and call the new onestorage-new.yml
- In the
storage-new.yml
file, put in the new information for the database you want to migrate to (change any other settings you want the new database to have, such as the cache). Keep thestorage.yml
file as it is with your old database information. Your old database must still be accessible to the plugin in order to migrate the data! - Start the server
- The plugin will use the information in
storage.yml
to gather all the data on the old database and use the information instorage-new.yml
to add the data to the new database - Once complete,
storage.yml
will be renamed tostorage-old.yml
andstorage-new.yml
will be renamed tostorage.yml
. The data will be in both the old database and new database now, you'll have to manually delete it in the old database if needed (this is done in-case of migration issues so that you can still manually migrate)