sms alarming flag
This commit is contained in:
parent
1d73a15227
commit
5c68f0c54f
14 changed files with 90 additions and 3 deletions
21
src/migrations/1732696919191-SMSAlarming.ts
Normal file
21
src/migrations/1732696919191-SMSAlarming.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
|
||||
|
||||
export class SMSAlarming1732696919191 implements MigrationInterface {
|
||||
name = "SMSAlarming1732696919191";
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.addColumn(
|
||||
"communication",
|
||||
new TableColumn({
|
||||
name: "isSMSAlarming",
|
||||
type: "tinyint",
|
||||
default: 0,
|
||||
isNullable: false,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.dropColumn("communication", "isSMSAlarming");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue