{"size": 573, "ext": "js", "max_stars_repo_path": "src/migrations/20180714114308_add_column_password_to_user.js", "max_stars_repo_name": "shrijan00003/node-express-starter", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/migrations/20180714114308_add_column_password_to_user.js", "max_issues_repo_name": "shrijan00003/node-express-starter", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/migrations/20180714114308_add_column_password_to_user.js", "max_forks_repo_name": "shrijan00003/node-express-starter", "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": 22.0384615385, "max_line_length": 55, "alphanum_fraction": 0.6387434555}
/**
 * @param  {object} knex
 * @return {Promise}
 */
export function up(knex) {
  return knex.schema.alterTable('users', table => {
    table.string('email');
    table.string('password');
    table.string('refresh_token',1000).defaultTo(null);
    table.timestamp('deleted_at');
  });
}

/**
 * @param  {object} knex
 * @return {Promise}
 */
export function down(knex) {
  return knex.schema.alterTable('users', table => {
    table.dropColumn('email');
    table.dropColumn('password');
    table.dropColumn('refresh_token');
    table.dropColumn('deleted_at');
  });
}
