From b8f6eebd8de0840fe7f30957df8e302a6bedb4c7 Mon Sep 17 00:00:00 2001 From: Brianna Cerkiewicz Date: Tue, 28 May 2024 15:54:26 -0700 Subject: [PATCH] chore: add 2024 to the funding stream rfp table --- schema/deploy/tables/funding_stream_rfp_002.sql | 10 ++++++++++ schema/revert/tables/funding_stream_rfp_002.sql | 7 +++++++ schema/sqitch.plan | 2 ++ schema/verify/tables/funding_stream_rfp_002.sql | 13 +++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 schema/deploy/tables/funding_stream_rfp_002.sql create mode 100644 schema/revert/tables/funding_stream_rfp_002.sql create mode 100644 schema/verify/tables/funding_stream_rfp_002.sql diff --git a/schema/deploy/tables/funding_stream_rfp_002.sql b/schema/deploy/tables/funding_stream_rfp_002.sql new file mode 100644 index 0000000000..822726d92b --- /dev/null +++ b/schema/deploy/tables/funding_stream_rfp_002.sql @@ -0,0 +1,10 @@ +-- Deploy cif:tables/funding_stream_rfp_002 to pg + + +begin; + +insert into cif.funding_stream_rfp (year, funding_stream_id) values +(2024, 1), (2024, 2); + +commit; + diff --git a/schema/revert/tables/funding_stream_rfp_002.sql b/schema/revert/tables/funding_stream_rfp_002.sql new file mode 100644 index 0000000000..d88403cfc3 --- /dev/null +++ b/schema/revert/tables/funding_stream_rfp_002.sql @@ -0,0 +1,7 @@ +-- Revert cif:tables/funding_stream_rfp_002 from pg + +begin; + +delete from cif.funding_stream_rfp where year = 2024; + +commit; diff --git a/schema/sqitch.plan b/schema/sqitch.plan index 185492c0ef..bef95abbc9 100644 --- a/schema/sqitch.plan +++ b/schema/sqitch.plan @@ -374,3 +374,5 @@ mutations/commit_form_change [mutations/commit_form_change@1.15.0] 2023-11-22T19 @1.16.4 2024-05-15T17:36:42Z Mike Vesprini # release v1.16.4 @1.16.5 2024-05-22T23:00:27Z Mike Vesprini # release v1.16.5 @1.17.0 2024-05-24T21:29:42Z Mike Vesprini # release v1.17.0 + +tables/funding_stream_rfp_002 2024-05-28T22:41:57Z Brianna Cerkiewicz # Add 2024 funding streams values to funding_stream_rfp table diff --git a/schema/verify/tables/funding_stream_rfp_002.sql b/schema/verify/tables/funding_stream_rfp_002.sql new file mode 100644 index 0000000000..aeac37e065 --- /dev/null +++ b/schema/verify/tables/funding_stream_rfp_002.sql @@ -0,0 +1,13 @@ +-- Verify cif:tables/funding_stream_rfp_002 on pg + +begin; + +do $$ + begin + assert ( + (select count(*) from cif.funding_stream_rfp where year = 2024) = 2 + ), 'EP and IA streams have been added for 2024'; + end; +$$; + +rollback;