protocol absence

This commit is contained in:
Julian Krauser 2025-01-05 12:12:53 +01:00
parent 455589e2b5
commit 161a9dc51c
10 changed files with 86 additions and 23 deletions

View file

@ -0,0 +1,21 @@
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");
}
}