Skip to content

Commit 0a9d830

Browse files
committed
chore: format migration
Apply Prettier formatting so lint passes for the new migration
1 parent d2a4459 commit 0a9d830

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

backend/typescript/migrations/20260211120000-add-isArchived-and-isActive-columns.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ const POSITIONS_TABLE_NAME = "positions";
55
const USERS_TABLE_NAME = "users";
66

77
export const up: Migration = async ({ context: sequelize }) => {
8-
await sequelize.getQueryInterface().addColumn(POSITIONS_TABLE_NAME, "isArchived", {
9-
type: DataType.BOOLEAN,
10-
allowNull: false,
11-
defaultValue: false,
12-
});
8+
await sequelize
9+
.getQueryInterface()
10+
.addColumn(POSITIONS_TABLE_NAME, "isArchived", {
11+
type: DataType.BOOLEAN,
12+
allowNull: false,
13+
defaultValue: false,
14+
});
1315

1416
await sequelize.getQueryInterface().addColumn(USERS_TABLE_NAME, "isActive", {
1517
type: DataType.BOOLEAN,
@@ -19,9 +21,10 @@ export const up: Migration = async ({ context: sequelize }) => {
1921
};
2022

2123
export const down: Migration = async ({ context: sequelize }) => {
22-
await sequelize.getQueryInterface().removeColumn(USERS_TABLE_NAME, "isActive");
24+
await sequelize
25+
.getQueryInterface()
26+
.removeColumn(USERS_TABLE_NAME, "isActive");
2327
await sequelize
2428
.getQueryInterface()
2529
.removeColumn(POSITIONS_TABLE_NAME, "isArchived");
2630
};
27-

0 commit comments

Comments
 (0)