Skip to content

Commit

Permalink
addressing pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
smirnovaae committed Nov 21, 2023
1 parent c145ad4 commit a5f2ba2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,6 @@ databaseChangeLog:
- include:
file: db/changelog/v2023/create_current_mbi_procedure.sql
# - include:
# file: db/changelog/v2023/create_pg_cron_extension.sql
# file: db/changelog/v2023/create_pg_cron_extension.sql
# - include:
# file: db/changelog/v2024/create_current_mbi_procedure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,3 @@ SELECT DISTINCT current_mbi from sandbox_2023
ON CONFLICT DO NOTHING;
end;
$$;
--
-- CREATE OR REPLACE PROCEDURE update_current_mbi_2024()
-- LANGUAGE plpgsql
-- AS $$
-- begin
-- INSERT INTO current_mbi
-- SELECT DISTINCT current_mbi from coverage_anthem_united_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_bcbs_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_centene_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_cigna1_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_cigna2_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_cvs_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_centene_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_humana_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_misc_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_mutual_dean_clear_cambia_rite_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_united1_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_united_2024
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from coverage_default
-- UNION DISTINCT
-- SELECT DISTINCT current_mbi from sandbox_2024
-- ON CONFLICT DO NOTHING;
-- end;
-- $$;
--
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
CREATE OR REPLACE PROCEDURE update_current_mbi_2024()
LANGUAGE plpgsql
AS $$
begin
INSERT INTO current_mbi
SELECT DISTINCT current_mbi from coverage_anthem_united_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_bcbs_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_centene_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_cigna1_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_cigna2_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_cvs_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_centene_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_humana_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_misc_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_mutual_dean_clear_cambia_rite_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_united1_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_united_2024
UNION DISTINCT
SELECT DISTINCT current_mbi from coverage_default
UNION DISTINCT
SELECT DISTINCT current_mbi from sandbox_2024
ON CONFLICT DO NOTHING;
end;
$$;

0 comments on commit a5f2ba2

Please sign in to comment.