diff --git a/backend/typescript/migrations/20251115184107-add-skill-category-column-in-reviewed-applicant-records.ts b/backend/typescript/migrations/20251115184107-add-skill-category-column-in-reviewed-applicant-records.ts new file mode 100644 index 00000000..ce72e0fc --- /dev/null +++ b/backend/typescript/migrations/20251115184107-add-skill-category-column-in-reviewed-applicant-records.ts @@ -0,0 +1,16 @@ +import { DataType } from "sequelize-typescript"; +import { Migration } from "../umzug"; + +const TABLE_NAME = "reviewed_applicant_records"; + +export const up: Migration = async ({ context: sequelize }) => { + await sequelize.getQueryInterface().addColumn(TABLE_NAME, "skillCategory", { + type: DataType.STRING, + allowNull: true, + defaultValue: null, + }); +}; + +export const down: Migration = async ({ context: sequelize }) => { + await sequelize.getQueryInterface().removeColumn(TABLE_NAME, "skillCategory"); +};