ff-admin-server/src/migrations/1736072179716-protocolAbsent.ts
2025-01-05 12:12:53 +01:00

21 lines
585 B
TypeScript

import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
export class ProtocolAbsent1736072179716 implements MigrationInterface {
name = "ProtocolAbsent1736072179716";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn(
"protocol_presence",
new TableColumn({
name: "absent",
type: "tinyint",
default: "0",
isNullable: false,
})
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn("protocol_presence", "absent");
}
}