-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMR-10141: Fixing the ability to subscribe SQS queues correctly to th…
…e local and AWS topics. Moving subscription ARN to CMR_Subscriptions table. (#2188) * CMR-10141: Fixing the ability to subscribe SQS queus correctly to the internal and AWS topics. Moving subscription ARN to CMR_Subscriptions table. * CMR-10141: Fixing unit test.
- Loading branch information
Showing
9 changed files
with
80 additions
and
73 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
18 changes: 18 additions & 0 deletions
18
metadata-db-app/src/cmr/metadata_db/migrations/092_update_cmr_subscriptions_table.clj
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,18 @@ | ||
(ns cmr.metadata-db.migrations.092-update-cmr-subscriptions-table | ||
"Move the AWS subscription arn column from the cmr_sub_notifications table to the cmr_subscriptions table." | ||
(:require | ||
[config.mdb-migrate-helper :as h])) | ||
|
||
(defn up | ||
"Migrates the database up to version 92." | ||
[] | ||
(println "cmr.metadata-db.migrations.092-update-cmr-sub-notifications-table up...") | ||
(h/sql "ALTER TABLE METADATA_DB.CMR_SUB_NOTIFICATIONS DROP COLUMN AWS_ARN") | ||
(h/sql "ALTER TABLE METADATA_DB.CMR_SUBSCRIPTIONS ADD AWS_ARN VARCHAR(2048) NULL")) | ||
|
||
(defn down | ||
"Migrates the database down from version 92." | ||
[] | ||
(println "cmr.metadata-db.migrations.092-update-cmr-sub-notifications-table down.") | ||
(h/sql "ALTER TABLE METADATA_DB.CMR_SUB_NOTIFICATIONS ADD AWS_ARN VARCHAR(2048) NULL") | ||
(h/sql "ALTER TABLE METADATA_DB.CMR_SUBSCRIPTIONS DROP COLUMN AWS_ARN")) |
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