-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Altered sims.sin_validations.gender_sent to be VARCHAR(50). Tested with a pending SIN Validation: ![image](https://github.com/user-attachments/assets/45a94faa-8b2d-40f5-b01d-ab0af6ef3e00) After running sin-validation-process-integration: ![image](https://github.com/user-attachments/assets/df3fa497-85ad-49f0-9355-9edcba8f8ca7) Revert: ![image](https://github.com/user-attachments/assets/104766b5-d103-478a-a904-e7b732cafb16)
- Loading branch information
1 parent
fc34165
commit 8040205
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...apps/db-migrations/src/migrations/1729880822018-SINValidationsGenderSentLengthIncrease.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,18 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
import { getSQLFileData } from "../utilities/sqlLoader"; | ||
|
||
export class SINValidationsGenderSentLengthIncrease1729880822018 | ||
implements MigrationInterface | ||
{ | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
getSQLFileData("Alter-column-gender-sent.sql", "SINValidations"), | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
getSQLFileData("Rollback-alter-column-gender-sent.sql", "SINValidations"), | ||
); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
...s/packages/backend/apps/db-migrations/src/sql/SINValidations/Alter-column-gender-sent.sql
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,4 @@ | ||
ALTER TABLE | ||
sims.sin_validations | ||
ALTER COLUMN | ||
gender_sent TYPE VARCHAR(50); |
4 changes: 4 additions & 0 deletions
4
...s/backend/apps/db-migrations/src/sql/SINValidations/Rollback-alter-column-gender-sent.sql
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,4 @@ | ||
ALTER TABLE | ||
sims.sin_validations | ||
ALTER COLUMN | ||
gender_sent TYPE VARCHAR(10); |