Skip to content

Commit

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

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

0 comments on commit 759dce1

Please sign in to comment.