index.js
function (name, callback) {
    var formattedDate = name.split('-')[0].replace('/', '');
    formattedDate = moment(formattedDate, 'YYYY-MM-DD HH:mm:ss');
    formattedDate = moment(formattedDate).format('YYYY-MM-DD HH:mm:ss');
    var command = util.format('INSERT INTO %s  (name, ran_on) VALUES (\'%s\', \'%s\')', internals.migrationTable, name, formattedDate);
    return this.runSql(command).nodeify(callback);
  }
function (name, callback) {
    var formattedDate = name.split('-')[0].replace('/', '');
    formattedDate = moment(formattedDate, 'YYYY-MM-DD HH:mm:ss');
    formattedDate = moment(formattedDate).format('YYYY-MM-DD HH:mm:ss');
    var command = util.format('INSERT INTO %s  (name, ran_on) VALUES (\'%s\', \'%s\')', internals.migrationTable, name, formattedDate);
    return this.runSql(command).nodeify(callback);
  }
function ( name , callback ) { var formattedDate = name . split ( '-' ) [ 0 ] . replace ( '/' , '' ) ; formattedDate = moment ( formattedDate , 'YYYY-MM-DD HH:mm:ss' ) ; formattedDate = moment ( formattedDate ) . format ( 'YYYY-MM-DD HH:mm:ss' ) ; var command = util . format ( 'INSERT INTO %s  (name, ran_on) VALUES (\'%s\', \'%s\')' , internals . migrationTable , name , formattedDate ) ; return this . runSql ( command ) . nodeify ( callback ) ; }
Add a new migration to migrations table
@param string name - Migration file name
@param callback
Add a new migration to migrations table