Skip to content

Commit

Permalink
add coverage_search_seq db migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rwolfe-Nava committed Oct 2, 2023
1 parent d3e7391 commit b4a1794
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,6 @@ databaseChangeLog:
- include:
file: db/changelog/v2023/create_job_output_sequence.sql
- include:
file: db/changelog/v2023/create_bene_coverage_period_sequence.sql
file: db/changelog/v2023/create_bene_coverage_period_sequence.sql
- include:
file: db/changelog/v2023/create_coverage_search_sequence.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE SEQUENCE IF NOT EXISTS public.coverage_search_seq START 1;

select setval('public.coverage_search_seq', (SELECT MAX(id) FROM public.coverage_search));
ALTER TABLE public.coverage_search ALTER COLUMN id SET DEFAULT nextval('public.coverage_search_seq');

0 comments on commit b4a1794

Please sign in to comment.