aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20131110233123-add-exchanges.js
blob: a7e824c399f23d363dadfe827ae0873bfa1bcc96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var dbm = require('db-migrate');
var type = dbm.dataType;

exports.up = function(db, callback) {
  db.createTable('exchanges', {
      id: { type: 'int', primaryKey: true, autoIncrement: true },
      name: { type: 'string' },
      url: { type: 'string' }
    }, callback);
};

exports.down = function(db, callback) {
  db.dropTable('exchanges', callback);
};