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

reset-db cli command? #24

Open
JAForbes opened this issue Feb 12, 2023 · 0 comments
Open

reset-db cli command? #24

JAForbes opened this issue Feb 12, 2023 · 0 comments
Labels
question Further information is requested

Comments

@JAForbes
Copy link
Owner

Resetting the db naively will confuse pgmg, as roles will still exist in the cluster. So if you want to drop the db and re-run everything (say for tests) any create role command will fail because the role already exists.

I don't want to encourage wrapping these cluster level commands in a try catch. So maybe we provide a reset-db command that drops the application db, but then re-seeds the cluster pgmg records before running the migration.

Something to dogfood.

@JAForbes JAForbes added the question Further information is requested label Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant