-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: clean up migration and improve formatting for subscriber em…
…ail notification footer text
- Loading branch information
Showing
3 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
27 changes: 17 additions & 10 deletions
27
Common/Server/Infrastructure/Postgres/SchemaMigrations/1737715240684-MigrationName.ts
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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class MigrationName1737715240684 implements MigrationInterface { | ||
public name = 'MigrationName1737715240684' | ||
public name = "MigrationName1737715240684"; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "StatusPage" DROP COLUMN "subscriberEmailNotificationFooterText"`); | ||
await queryRunner.query(`ALTER TABLE "StatusPage" ADD "subscriberEmailNotificationFooterText" text`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "StatusPage" DROP COLUMN "subscriberEmailNotificationFooterText"`); | ||
await queryRunner.query(`ALTER TABLE "StatusPage" ADD "subscriberEmailNotificationFooterText" character varying(100)`); | ||
} | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "StatusPage" DROP COLUMN "subscriberEmailNotificationFooterText"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "StatusPage" ADD "subscriberEmailNotificationFooterText" text`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "StatusPage" DROP COLUMN "subscriberEmailNotificationFooterText"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "StatusPage" ADD "subscriberEmailNotificationFooterText" character varying(100)`, | ||
); | ||
} | ||
} |
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