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

[SQLite] Fix invalid changeColumn regex causing deletions #1126

Merged
merged 1 commit into from
Jul 1, 2017

Conversation

nebez
Copy link
Contributor

@nebez nebez commented Jul 1, 2017

This fixes an issue in the SQLiteAdapter that causes columns to be destroyed when removing a default value of '' from a string column.
See comment here: #1093 (comment)

Unfortunately, there are no existing tests for this specific functionality that prove what I've changed hasn't broken anything.

This fixes a pretty serious bug in the Phinx SQLiteAdapter that causes columns to be destroyed when you're removing the default value of `''` from a string column.
See comment here: cakephp#1093 (comment)

There are no tests in phinx that prove what I've changed hasn't broken anything, and I'm not about to start writing all the test cases to prove this works.
Maybe I have indeed broken some weird implementation detail that this regex was intended to target... oh well.
@lorenzo
Copy link
Member

lorenzo commented Jul 1, 2017

Thanks, I can actually see how the previous regex was wrong and this one is safer.

@lorenzo lorenzo merged commit 1fefa55 into cakephp:master Jul 1, 2017
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

Successfully merging this pull request may close these issues.

2 participants