protocol absence
This commit is contained in:
parent
455589e2b5
commit
161a9dc51c
10 changed files with 86 additions and 23 deletions
21
src/migrations/1736072179716-protocolAbsent.ts
Normal file
21
src/migrations/1736072179716-protocolAbsent.ts
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue