     dbVer.lastUpdated = new Date()
     dbVer.save (err) ->
       logger.error err if err?
-      logger.info "  Done."
+      logger.info "  \u2713 Done."
       defer.resolve()
   return defer.promise
 

  description: "Convert clients link to certs via their domain to use the cert fingerprint instead"
  func: ->
    defer = Q.defer()
    # do some more stuff
    setTimeout ->
      console.log('did more stuff')
      defer.resolve()
    , 2000
    return defer.promise

# add new upgrade functions here

runUpgradeFunc = (i, dbVer) ->
  logger.info "  Running update: #{upgradeFuncs[i].description}..."
  defer = Q.defer()
  # run upgrade function
  upgradeFuncs[i].func().then ->

dbVersion = require('./model/dbVersion').dbVersion
Keystore = require('./model/keystore').Keystore
Client = require('./model/clients').Client
logger = require 'winston'
pem = require 'pem'
Q = require 'q'
