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

Set default table creation style to CreationStyle.CreateIfNotExists #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jabellard
Copy link
Contributor

I'm pushing this PR to ensure that the default table creation style is CreationStyle.CreateIfNotExists.

The motivation for this change is safety. Given that applying a migration script is a process that is prone to human errors, I think it's wise to safeguard against such errors as much as possible.

With the default as CreationStyle.DropThenCreate, if any migration script is run a second time by mistake, then tables can be dropped, resulting in a loss of data, which can be catastrophic in a production environment.

@jeremydmiller
Copy link
Member

@jabellard Dude, we can't change default behavior without a major version change. And this broke a lot of tests that would have to be adjusted. I think you'd need to wait for a major Weasel & a major Marten release to pull this off.

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

Successfully merging this pull request may close these issues.

3 participants