Skip to content

Switching from FunnyGuilds

Marcin Wieczorek edited this page Apr 22, 2017 · 1 revision

NovaGuilds allows data transfer from FunnyGuilds by @dzikoysk to NovaGuilds preserving almost every bit of data. As you might know, it is possible to migrate data between storages. This option is being used for transfering data from a FG setup. A command you need to use will look like this:

/nga migrate from funnyguilds_mysql

Before you do this you need to change connection parameters. When you execute above command a database connection attempt is made. First you need to start the server with your usual config, then you change it with commands. Lets say you have a database with FunnyGuilds data with every table prefixed for example funnyguilds_. When you set up NG in the same database tables prefixed novaguilds_ (by default) are being created. You need to change the prefix to match FunnyGuilds' data:

/nga config set mysql.prefix funnyguilds_

The existing database connection is still in use, you don't need to worry about it. After a data transfer you can calmly change the prefix (or other config nodes) back to their previous states. The safest option now is to restart the server to prevent any weird behavior.

You can do the same using YAML files storage, the storage name is funnyguilds_flat then. You should not do the transfer more than once. Also, using a clean NG setup is recommended. Be sure to back up every storage first.