Skip to content

Commit

Permalink
#4133 - SFAS to SIMS Bridge - PT App Cancellation Date & MSFAA (FT/PT…
Browse files Browse the repository at this point in the history
…) 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
andrepestana-aot authored Dec 24, 2024
1 parent 9ca9cd2 commit f0253be
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
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",
),
);
}
}
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).';
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;

0 comments on commit f0253be

Please sign in to comment.