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

SQL Clean-up Script for Network Resets #27

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

AlfredoG87
Copy link
Contributor

Description:

Added a SQL Script to remove all data from Postgres instance, this removes all configuration and data.

Due to network resets for previewnet and testnet, every time the network is reseted we need to cleanup the database for thegraph instance of such networks.

On restart the graph-node will re-generate all the configuration tables. And all the subgraphs and its data is no longer valid after a network reset.

Related issue(s):

Fixes #26

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@AlfredoG87 AlfredoG87 self-assigned this Jan 18, 2024
@AlfredoG87 AlfredoG87 added the Improvement Code changes driven by non business requirements label Jan 18, 2024
@AlfredoG87 AlfredoG87 added this to the 0.2.0 milestone Jan 18, 2024
…moves all configuration and data.

Due to network resets for previewnet and testnet, everytime the network is reseted we need to cleanup the database for thegraph instnace of such networks.
on Restart the graph-node will re-generate all the configuration tables. And all the subgraphs and its data is no longer valid after a network reset.

Signed-off-by: Alfredo Gutierrez <[email protected]>
@AlfredoG87 AlfredoG87 merged commit ba34362 into main Jan 22, 2024
3 checks passed
@AlfredoG87 AlfredoG87 deleted the sql-cleanup-script branch January 22, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Code changes driven by non business requirements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean-up script for DB after a Network reset.
2 participants