-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
August Andersen
committed
Sep 26, 2024
1 parent
f2e5f23
commit 64c8e50
Showing
8 changed files
with
99 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class AddedAlarmPropsToGateway1727271446786 implements MigrationInterface { | ||
name = 'AddedAlarmPropsToGateway1727271446786' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "gateway" ADD "notifyOffline" boolean`); | ||
await queryRunner.query(`ALTER TABLE "gateway" ADD "notifyUnusualPackages" boolean`); | ||
await queryRunner.query(`ALTER TABLE "gateway" ADD "offlineAlarmThresholdMinutes" integer`); | ||
await queryRunner.query(`ALTER TABLE "gateway" ADD "minimumPackages" integer`); | ||
await queryRunner.query(`ALTER TABLE "gateway" ADD "maximumPackages" integer`); | ||
await queryRunner.query(`ALTER TABLE "gateway" ADD "alarmMail" character varying`); | ||
await queryRunner.query(`ALTER TABLE "gateway" ADD "hasSentOfflineNotification" boolean`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "gateway" DROP COLUMN "hasSentOfflineNotification"`); | ||
await queryRunner.query(`ALTER TABLE "gateway" DROP COLUMN "alarmMail"`); | ||
await queryRunner.query(`ALTER TABLE "gateway" DROP COLUMN "maximumPackages"`); | ||
await queryRunner.query(`ALTER TABLE "gateway" DROP COLUMN "minimumPackages"`); | ||
await queryRunner.query(`ALTER TABLE "gateway" DROP COLUMN "offlineAlarmThresholdMinutes"`); | ||
await queryRunner.query(`ALTER TABLE "gateway" DROP COLUMN "notifyUnusualPackages"`); | ||
await queryRunner.query(`ALTER TABLE "gateway" DROP COLUMN "notifyOffline"`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters