Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Config] Migrate UUID for JSON backend #2604
Description of the changes
Due to some unforeseen issues with the previous method of generating/saving the unique identifier number, we've had to implement a way to migrate all previous identifiers to a safer generation/saving method.
This code requires all users to migrate to JSON (from both old and new Mongo drivers), and load the bot one time before converting back to Mongo. All JSON users will be unaffected.
It's important to note that if existing MongoDBV2 users do NOT migrate back to JSON after this PR, their bot will still connect to discord successfully, but all existing data will be inaccessible to the bot. Performing the JSON conversion and load will make data accessible again.