lib/reset.js
function resetSchema(result, schema) {
  var knex = this.knex;
  return knex.schema.hasTable(schema.tableName)
  .then(function (exists) {
    if (! exists) return result;
    return knex(schema.tableName).del()
    .then(function () {
      return result.concat([schema]);
    });
  });
}
function resetSchema(result, schema) {
  var knex = this.knex;
  return knex.schema.hasTable(schema.tableName)
  .then(function (exists) {
    if (! exists) return result;
    return knex(schema.tableName).del()
    .then(function () {
      return result.concat([schema]);
    });
  });
}
function resetSchema ( result , schema ) { var knex = this . knex ; return knex . schema . hasTable ( schema . tableName ) . then ( function ( exists ) { if ( ! exists ) return result ; return knex ( schema . tableName ) . del ( ) . then ( function ( ) { return result . concat ( [ schema ] ) ; } ) ; } ) ; }
Delete schema table data.

@param {[Schema]} result - reduce accumulator
@param {Schema} schema
@return {Promise}
Delete schema table data .