-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(university-gateway): Include attachmentKey when sending attachmen…
…ts (#16631) * Rename externalId -> externalKey for extraApplicationField Add otherDocuments when creating application (extraApplicationField) Fix when setting chosenProgram Remove unecessary mapping for file types * include attachmentKey when sending otherDocuments attachments * Cleanup * Cleanup --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a40250f
commit 1d3e7e4
Showing
19 changed files
with
260 additions
and
198 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...-gateway/migrations/20241028110548-change-program-extra-application-field-external-key.js
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,43 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => { | ||
return queryInterface.sequelize.query(` | ||
BEGIN; | ||
-- Add new column | ||
ALTER TABLE program_extra_application_field | ||
ADD COLUMN external_key VARCHAR(255) NOT NULL DEFAULT ''; | ||
-- Set value in new column | ||
UPDATE program_extra_application_field | ||
SET external_key = external_id; | ||
-- Drop the old column | ||
ALTER TABLE program_extra_application_field | ||
DROP COLUMN external_id; | ||
COMMIT; | ||
`) | ||
}, | ||
|
||
down(queryInterface, Sequelize) { | ||
return queryInterface.sequelize.query(` | ||
BEGIN; | ||
-- Add back the old column | ||
ALTER TABLE program_extra_application_field | ||
ADD COLUMN external_id VARCHAR(255) NOT NULL DEFAULT ''; | ||
-- Set value in old column | ||
UPDATE program_extra_application_field | ||
SET external_id = external_key; | ||
-- Drop the new column | ||
ALTER TABLE program_extra_application_field | ||
DROP COLUMN external_key; | ||
COMMIT; | ||
`) | ||
}, | ||
} |
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
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
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
Oops, something went wrong.