From b79336ccd7c92f3c1f1fb7b96f0bcaa389b017dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Wed, 14 Feb 2024 10:29:54 +0000 Subject: [PATCH] feat: Add govpay columns to team_integrations table --- hasura.planx.uk/metadata/tables.yaml | 2 ++ .../down.sql | 5 +++++ .../up.sql | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/down.sql create mode 100644 hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/up.sql diff --git a/hasura.planx.uk/metadata/tables.yaml b/hasura.planx.uk/metadata/tables.yaml index 6db2704e48..54dfbdf8ea 100644 --- a/hasura.planx.uk/metadata/tables.yaml +++ b/hasura.planx.uk/metadata/tables.yaml @@ -1365,8 +1365,10 @@ - id - production_bops_secret - production_bops_submission_url + - production_govpay_secret - staging_bops_secret - staging_bops_submission_url + - staging_govpay_secret - team_id filter: {} - role: public diff --git a/hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/down.sql b/hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/down.sql new file mode 100644 index 0000000000..5aeebff354 --- /dev/null +++ b/hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/down.sql @@ -0,0 +1,5 @@ +comment on column "public"."team_integrations"."staging_govpay_secret" is NULL; +comment on column "public"."team_integrations"."production_govpay_secret" is NULL; + +ALTER table "public"."team_integrations" DROP COLUMN "staging_govpay_secret"; +ALTER table "public"."team_integrations" DROP COLUMN "production_govpay_secret"; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/up.sql b/hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/up.sql new file mode 100644 index 0000000000..a85e6ce282 --- /dev/null +++ b/hasura.planx.uk/migrations/1707838555655_alter_table_public_team_integrations_add_column_staging_govpay_secret/up.sql @@ -0,0 +1,9 @@ +alter table "public"."team_integrations" add column "staging_govpay_secret" text + null; + +comment on column "public"."team_integrations"."staging_govpay_secret" is E'Secret required for GovPay submissions in the format :'; + +alter table "public"."team_integrations" add column "production_govpay_secret" text + null; + +comment on column "public"."team_integrations"."production_govpay_secret" is E'Secret required for GovPay submission in the format :';