stellar/stellar-wallet

View on GitHub
migrations/20140617214446-optional-recoveryId.js

Summary

Maintainability
A
1 hr
Test Coverage
var dbm = require('stex').dbMigrate;
var type = dbm.dataType;

exports.up = function(db, callback) {
  db.changeColumn('wallets', 'recoveryId', { type: type.STRING, length: "255", notNull: false }, callback);
};

exports.down = function(db, callback) {
  db.changeColumn('wallets', 'recoveryId', { type: type.STRING, length: "255", notNull: true }, callback);
};