-
Notifications
You must be signed in to change notification settings - Fork 1
Generating unique CouchDB IDs
Robert Christensen edited this page Mar 6, 2014
·
1 revision
For cmdr-server, unique IDs are required for CouchDB documents.
This is the code to generate UUIDs for all of the CouchDB documents.
To run it, just switch the two instances of cmdr-dev1 with the desired controller. It will create a new database in couch with UUIDs. Just delete the old rooms database (after backing it up) and create a new rooms database with the new documents.
This removes duplicate ids from cmdr-server so that it doesn't break.