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

AutoCreate.CreateOrUpdate should use CreationStyle.CreateIfNotExists #71

Open
apii opened this issue Nov 3, 2022 · 0 comments
Open

Comments

@apii
Copy link

apii commented Nov 3, 2022

I'm using the db-patch command to export database creation scripts to files. It says that setting the --auto-create flag should control the way that tables/functions are created but I don't think that it's actually doing that. Both CreateOrUpdate and CreateOnly seem to generate scripts that will first drop the table and then create it.

Since the database exporter already seems to have capability to update tables without dropping them, I think this should also be settable from the command line.

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

No branches or pull requests

1 participant