generated from brocoders/nestjs-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.5.15 fix post customer me email duplicate and add itunes and play s…
…tore URL to app config
- Loading branch information
1 parent
768ce06
commit b923b97
Showing
8 changed files
with
73 additions
and
14 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
33 changes: 33 additions & 0 deletions
33
src/database/migrations/1706827780693-PreferRelatedApplications.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class PreferRelatedApplications1706827780693 | ||
implements MigrationInterface | ||
{ | ||
name = 'PreferRelatedApplications1706827780693'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "app_config" ADD "preferRelatedApplications" boolean DEFAULT false`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "app_config" ADD "playAppUrl" character varying`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "app_config" ADD "playAppId" character varying`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "app_config" ADD "itunesUrl" character varying`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "app_config" DROP COLUMN "itunesUrl"`); | ||
await queryRunner.query(`ALTER TABLE "app_config" DROP COLUMN "playAppId"`); | ||
await queryRunner.query( | ||
`ALTER TABLE "app_config" DROP COLUMN "playAppUrl"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "app_config" DROP COLUMN "preferRelatedApplications"`, | ||
); | ||
} | ||
} |
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 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