select setval('cases_id_seq', (select max(id) from cases));
select setval('methods_id_seq', (select max(id) from methods));
select setval('organizations_id_seq', (select max(id) from organizations));

select setval('cases_id_seq', (select max(id) from cases) +1 );
select setval('methods_id_seq', (select max(id) from methods) +1);
select setval('organizations_id_seq', (select max(id) from organizations) +1);
select setval('users_id_seq', (select max(id) from users) + 1);

Update the code to update id incrementing
Update the code to update id incrementing
