{"size": 493, "ext": "js", "max_stars_repo_path": "api/database/migrations/20210110021415-hackathon-constants-add-type.js", "max_stars_repo_name": "HackSC/apply-2020", "max_stars_repo_stars_event_min_datetime": "2019-09-25T16:20:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-20T08:53:11.000Z", "max_issues_repo_path": "api/database/migrations/20210110021415-hackathon-constants-add-type.js", "max_issues_repo_name": "HackSC/apply-2020", "max_issues_repo_issues_event_min_datetime": "2019-09-26T19:07:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-17T20:47:45.000Z", "max_forks_repo_path": "api/database/migrations/20210110021415-hackathon-constants-add-type.js", "max_forks_repo_name": "HackSC/apply-2020", "max_forks_repo_forks_event_min_datetime": "2019-09-25T23:27:26.000Z", "max_forks_repo_forks_event_max_datetime": "2020-02-04T19:59:18.000Z"}
{"max_stars_count": 8, "max_issues_count": 321, "max_forks_count": 2, "avg_line_length": 21.4347826087, "max_line_length": 70, "alphanum_fraction": 0.569979716}
"use strict";

module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.addColumn(
      "HackathonConstants",
      "type",
      {
        type: Sequelize.ENUM,
        values: ["date", "boolean", "string"],
      },
      {
        charset: "utf8mb4",
        collate: "utf8mb4_bin", // * New Databases: utf8mb4_0900_ai_ci
      }
    );
  },

  down: (queryInterface, Sequelize) => {
    return queryInterface.removeColumn("HackathonConstants", "type");
  },
};
