Skip to content

Commit 8715732

Browse files
author
Maggie Chen
committed
add migration
1 parent eceb651 commit 8715732

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { DataType } from "sequelize-typescript";
2+
import { Migration } from "../umzug";
3+
4+
const TABLE_NAME = "reviewed_applicant_records";
5+
6+
export const up: Migration = async ({ context: sequelize }) => {
7+
await sequelize.getQueryInterface().addColumn(TABLE_NAME, "skillCategory", {
8+
type: DataType.STRING,
9+
allowNull: true,
10+
defaultValue: null,
11+
});
12+
};
13+
14+
export const down: Migration = async ({ context: sequelize }) => {
15+
await sequelize.getQueryInterface().removeColumn(TABLE_NAME, "skillCategory");
16+
};

0 commit comments

Comments
 (0)