Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import data snapshot to existing database #51

Open
jmajaca opened this issue Apr 12, 2021 · 2 comments
Open

Import data snapshot to existing database #51

jmajaca opened this issue Apr 12, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jmajaca
Copy link
Owner

jmajaca commented Apr 12, 2021

No description provided.

@jmajaca jmajaca self-assigned this Apr 12, 2021
@jmajaca jmajaca added the enhancement New feature or request label Apr 12, 2021
@jmajaca
Copy link
Owner Author

jmajaca commented Apr 12, 2021

Convert all to string values.
After inserting execute this query for every table with SERIAL id.
SELECT pg_catalog.setval(pg_get_serial_sequence('reaction', 'id'), MAX(id)) FROM reaction;

@jmajaca
Copy link
Owner Author

jmajaca commented Apr 12, 2021

TODO: don't upload snapshot if database is down

@jmajaca jmajaca added this to the Spring 2021 milestone Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant