Skip to content

Migrating to 0.10.x

Jonathan Leibiusky edited this page Jan 26, 2015 · 6 revisions

Starting with version 0.10.0 DemocracyOS supports:

Additionally, we support two new languages:

BREAKING

Breaking changes with all previous versions has been introduced:

  • Renamed citizens db collection to users.
  • Added the required JWT_SECRET config setting.

DB collection rename

There are two ways you can adress this:

NOTE: I'd suggest you back-up your db before doing anything; you can do this easily with mongodump. We're completely unresponsible for any data loss you may suffer.

  1. Rename your collection (recommended):
  2. Connect to your db with the mongo CLI
  3. Rename the collection with db.citizens.renameCollection('users')
  4. ???
  5. Profit!

REMEMBER when doing this, to update your db.aliases config under your DemocracyOS/notifier deployment!

  1. Add { collection: 'citizens' } to the models/user.js mongoose Schema.

JWT secret config setting

This one's easy: just add the required JWT_SECRET config setting as an environment variable or under secret in your config file). The value can be any string. We use MD5 hashes of funny phrases.

Clone this wiki locally