-
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
* #1837 - Fixed the Designation Request bug * Update code with review comments * Updated code with review comments * Updated code with review comments * Updated code with review comments * Updated code with the review comments
- Loading branch information
1 parent
626e9b9
commit aac03a0
Showing
7 changed files
with
87 additions
and
3 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
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
24 changes: 24 additions & 0 deletions
24
...b-migrations/src/migrations/1680120153698-DesignationAgreementsTableAlterSubmittedData.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,24 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
import { getSQLFileData } from "../utilities/sqlLoader"; | ||
|
||
export class DesignationAgreementsTableAlterSubmittedData1680120153698 | ||
implements MigrationInterface | ||
{ | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
getSQLFileData( | ||
"Update-col-submitted-data-drop-not-null.sql", | ||
"DesignationAgreements", | ||
), | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
getSQLFileData( | ||
"Update-col-submitted-data-add-not-null.sql", | ||
"DesignationAgreements", | ||
), | ||
); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ps/db-migrations/src/sql/DesignationAgreements/Update-col-submitted-data-add-not-null.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,7 @@ | ||
-- Updated the submitted_data column from NULL to NOT NULL | ||
ALTER TABLE | ||
sims.designation_agreements | ||
ALTER COLUMN | ||
submitted_data | ||
SET | ||
NOT NULL; |
5 changes: 5 additions & 0 deletions
5
...s/db-migrations/src/sql/DesignationAgreements/Update-col-submitted-data-drop-not-null.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,5 @@ | ||
-- Updated the submitted_data column from NOT NULL to NULL | ||
ALTER TABLE | ||
sims.designation_agreements | ||
ALTER COLUMN | ||
submitted_data DROP NOT NULL; |
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