I'm using Postgres database and have a table like below
id firstname lastname settings
1 Sam Crews {"some_key": some_value}
2 John Dave {"some_key": some_value}
I am trying to move one of the columns into settings json and drop the column. So it becomes,
id firstname settings
1 Sam {"some_key": some_value, "lastname": "Crews"}
2 John {"some_key": some_value, "lastname": "Dave"}
What is the postgres syntax for moving column to in jsonb field? Been searching but can not seem to figure it out.