You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mikey Saugstad edited this page Oct 1, 2020
·
1 revision
I will flesh these out soon, but here is the rough outline of how to make the schema:
pg_dump -h [host] -d [database] -U [user] -s > filename to get the basic schema
pg_dump -h [host] -d [database] -U [user] --column-inserts -t <table names like play_evolutions, label_type, etc> to get the INSERTs for the tables that we need to keep (TODO make a list of these)
Manually add the inserts from the 2nd dump into the first dump
Add SELECT setval('blah_id_seq', (SELECT MAX(blah_id) from "blah")); statements for the tables where we added inserts.