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

Feature: Create/Update structure.sql for each migration #19

Open
neumachen opened this issue Feb 4, 2016 · 2 comments
Open

Feature: Create/Update structure.sql for each migration #19

neumachen opened this issue Feb 4, 2016 · 2 comments

Comments

@neumachen
Copy link

Currently each time a migration is applied and unless pgmgr dump is executed there's no dump or structure file that gets generated.

This feature would create a structure only sql file each time a migration is ran and can be toggled on and off via the config file through the setting:

{
  "db-structure": "path/to/structure/"
}

By default, the structure is not generated unless this part of the configuration is specified.

@rnubel
Copy link
Owner

rnubel commented Feb 19, 2016

Hey, sorry for the delay in responding. We already have a config key, dump-file, to indicate where DB dumps (aka structure.sql) go, but what we don't have is a flag to automatically run it after migrating. In a production environment, that behavior is undesirable, but I can see use cases where you'd want it. Perhaps a "dump-after-migrate": true flag instead?

@neumachen
Copy link
Author

It's alright. Yeah, we can add a flag. I'll try to make a PR for that sometime soon. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants