Skip to content

Commit

Permalink
add bene_coverage_period_seq migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rwolfe-Nava committed Oct 2, 2023
1 parent c9e3a72 commit d3e7391
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 @@ -162,4 +162,6 @@ databaseChangeLog:
- include:
file: db/changelog/v2023/create_job_sequence.sql
- include:
file: db/changelog/v2023/create_job_output_sequence.sql
file: db/changelog/v2023/create_job_output_sequence.sql
- include:
file: db/changelog/v2023/create_bene_coverage_period_sequence.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE SEQUENCE IF NOT EXISTS public.bene_coverage_period_seq START 1;

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

0 comments on commit d3e7391

Please sign in to comment.