{"size": 481, "ext": "js", "max_stars_repo_path": "model/migrations/20190114005026_bitcoin_test.js", "max_stars_repo_name": "henry039/coin-ocean", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "model/migrations/20190114005026_bitcoin_test.js", "max_issues_repo_name": "henry039/coin-ocean", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "model/migrations/20190114005026_bitcoin_test.js", "max_forks_repo_name": "henry039/coin-ocean", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.7222222222, "max_line_length": 52, "alphanum_fraction": 0.5945945946}

exports.up = function(knex, Promise) {
  return knex.transaction(async (trx)=>{
      await trx.schema.createTable('BTC', (table)=>{
          table.increments().primary();
          table.string('date').notNullable()
          table.decimal('price')
          table.decimal('txVol', null)
          table.decimal('marketCap', null)
      })
  })
};

exports.down = function(knex, Promise) {
  return knex.transaction(async (trx)=>{
      await trx.schema.dropTable('BTC')
  })
};