-
Notifications
You must be signed in to change notification settings - Fork 5
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
Zain Kassam
committed
Jan 31, 2025
1 parent
4274fdb
commit 1b38c7d
Showing
3 changed files
with
32 additions
and
9 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
25 changes: 25 additions & 0 deletions
25
...connection/migrations/1738320805938-addFeeRecordCorrectionBankTeamNameAndEmailsColumns.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,25 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class AddFeeRecordCorrectionBankTeamNameAndEmailsColumns1738320805938 implements MigrationInterface { | ||
name = 'AddFeeRecordCorrectionBankTeamNameAndEmailsColumns1738320805938'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
ALTER TABLE "FeeRecordCorrection" | ||
ADD "bankTeamName" nvarchar(500) NOT NULL | ||
`); | ||
await queryRunner.query(` | ||
ALTER TABLE "FeeRecordCorrection" | ||
ADD "bankTeamEmails" nvarchar(1000) NOT NULL | ||
`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
ALTER TABLE "FeeRecordCorrection" DROP COLUMN "bankTeamEmails" | ||
`); | ||
await queryRunner.query(` | ||
ALTER TABLE "FeeRecordCorrection" DROP COLUMN "bankTeamName" | ||
`); | ||
} | ||
} |