{"size": 399, "ext": "js", "max_stars_repo_path": "migrations/20170726200900_argon2hash.js", "max_stars_repo_name": "tuffjs/tuff-chat", "max_stars_repo_stars_event_min_datetime": "2017-07-27T03:15:49.000Z", "max_stars_repo_stars_event_max_datetime": "2017-07-27T03:15:49.000Z", "max_issues_repo_path": "migrations/20170726200900_argon2hash.js", "max_issues_repo_name": "tuffjs/tuff-chat", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "migrations/20170726200900_argon2hash.js", "max_forks_repo_name": "tuffjs/tuff-chat", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.6, "max_line_length": 67, "alphanum_fraction": 0.6516290727}
exports.up = function(knex, Promise) {
  return Promise.all([
    knex.raw(`ALTER TABLE "user" DROP COLUMN salt;`),
    knex.raw(`ALTER TABLE "user" ALTER COLUMN hash TYPE TEXT;`),
  ]);
}

exports.down = function(knex, Promise) {
  return Promise.all([
    knex.raw(`ALTER TABLE "user" ADD COLUMN salt BYTEA NOT NULL;`),
    knex.raw(`ALTER TABLE "user" ALTER COLUMN hash TYPE BYTEA;`),
  ]) ;
};

