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.ymlfile and call the new onestorage-new.yml - In the
storage-new.ymlfile, 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.ymlfile 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.ymlto gather all the data on the old database and use the information instorage-new.ymlto add the data to the new database - Once complete,
storage.ymlwill be renamed tostorage-old.ymlandstorage-new.ymlwill 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)
