var dbm = require('db-migrate');
var type = dbm.dataType;

exports.up = function(db, callback) {
  db.createTable('ripple_transactions', { 
		id: { type: 'int', primaryKey: true, autoIncrement: true, notNull: true, unique: true },
    issuance: { type: 'boolean', notNull: true },
    toCurrency: { type: 'string', notNull: true },
    toAddress: { type: 'string', notNull: true },
    fromAddress: { type: 'string', notNull: true },
    toAmount: { type: 'decimal', notNull: true },
    fromCurrency: { type: 'string', notNull: true },
    fromAmount: { type: 'decimal', notNull: true },
    txHash: { type: 'string', unique: true },
    createdAt: { type: 'datetime', notNull: true },
    destinationTag: { type: 'string' },
    sourceTag: { type: 'string' },
    balanceId: { type: 'int', notNull: true },
    txState: { type: 'string' },
    updatedAt: { type: 'datetime' }
  }, callback);
};

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

var dbm = require('db-migrate');
var type = dbm.dataType;

exports.up = function(db, callback) {
  db.createTable('ripple_transactions', { 
		id: { type: 'int', primaryKey: true, autoIncrement: true, notNull: true, unique: true },
    issuance: { type: 'boolean', notNull: true },
    toCurrency: { type: 'string', notNull: true },
    toAddress: { type: 'string', notNull: true },
    fromAddress: { type: 'string', notNull: true },
    toAmount: { type: 'decimal', notNull: true },
    fromCurrency: { type: 'string', notNull: true },
    fromAmount: { type: 'decimal', notNull: true },
    txHash: { type: 'string', unique: true },
    createdAt: { type: 'datetime', notNull: true },
    destinationTag: { type: 'string' },
    sourceTag: { type: 'string' },
    txState: { type: 'string' },
    updatedAt: { type: 'datetime' }
  }, callback);
};

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

Remove balanceId from ripple transactions table
[FEATURE] Remove balanceId from ripple transactions table
