Skip to content

Migrate 2 servers to one database #3343

Answered by AuroraLS3
rubenbarkman asked this question in Q&A
Discussion options

You must be logged in to vote

It's not currently very feasible to do manually due to the amount of foreign keys (marked FK in the https://github.com/plan-player-analytics/Plan/wiki/Database-Schema). Foreign keys are used to link data together for faster joins in queries.

Since the database table for plan_users can contain duplicates for players, the ids in the 2 database don't add-up and the ids coming in from the other database would need to be changed to match in the resulting database.

Likewise both servers are likely to have server_id of 1 which would need to be corrected for the 2nd dataset (same is the case for other ids),


If you want to do it manually I would first migrate the two sqlite databases to two diffe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rubenbarkman
Comment options

Answer selected by rubenbarkman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants