-
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.
#4133 - SFAS to SIMS Bridge - PT App Cancellation Date & MSFAA (FT/PT…
…) Change - Part 1 (#4175) - Migration to add `application_date_column` to `sims.sfas_part_time_applications` ![image](https://github.com/user-attachments/assets/341374ff-f6a0-4c8d-8329-e669cd1f72a9)
- Loading branch information
1 parent
9ca9cd2
commit f0253be
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...grations/src/migrations/1734984637510-AddApplicationCancelDateSFASPartTimeApplications.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 AddApplicationCancelDateSFASPartTimeApplications1734984637510 | ||
implements MigrationInterface | ||
{ | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
getSQLFileData( | ||
"Add-application-cancel-date.sql", | ||
"SFASPartTimeApplications", | ||
), | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
getSQLFileData( | ||
"Rollback-add-application-cancel-date.sql", | ||
"SFASPartTimeApplications", | ||
), | ||
); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...ckend/apps/db-migrations/src/sql/SFASPartTimeApplications/Add-application-cancel-date.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,6 @@ | ||
ALTER TABLE | ||
sims.sfas_part_time_applications | ||
ADD | ||
COLUMN application_cancel_date DATE; | ||
|
||
COMMENT ON COLUMN sims.sfas_part_time_applications.application_cancel_date IS 'Date that this application was cancelled (sail_application_events.event_date).'; |
2 changes: 2 additions & 0 deletions
2
...s/db-migrations/src/sql/SFASPartTimeApplications/Rollback-add-application-cancel-date.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,2 @@ | ||
ALTER TABLE | ||
sims.sfas_part_time_applications DROP COLUMN application_cancel_date; |