Skip to content

Commit

Permalink
adding migration script to alter the sequence datatype
Browse files Browse the repository at this point in the history
Signed-off-by: Aishwarya2001 <[email protected]>
  • Loading branch information
Aishwarya2001A committed Feb 6, 2025
1 parent 87c4e63 commit 87fa34b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .studio/applications-service
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ document "applications_set_service_seq_to_int_max" <<DOC
32bit to 64bit.
DOC
function applications_set_service_seq_to_int_max() {

chef-automate dev psql chef_applications_service -- -c "ALTER SEQUENCE service_full_id_seq AS BIGINT;"

chef-automate dev psql chef_applications_service -- -c "SELECT setval('service_full_id_seq', (SELECT MAX(id) FROM service_full));"
chef-automate dev psql chef_applications_service -- -c "SELECT setval('service_full_id_seq', 9223372036854775807)"
}


document "applications_list_services" <<DOC
List all the applications-service services
DOC
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER SEQUENCE service_full_id_seq AS BIGINT;

0 comments on commit 87fa34b

Please sign in to comment.