Skip to content

Commit

Permalink
#3833 - SIN Validation - Gender Field Limit (#3839)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepestana-aot authored Oct 25, 2024
1 parent fc34165 commit 8040205
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
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"),
);
}
}
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);
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);

0 comments on commit 8040205

Please sign in to comment.