-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Add support for configurable migration column length. #538
Conversation
@SlvrEagle23 Can you add a test ? Thanks for the PR |
* | ||
* @param int $columnLength The migration string column length. | ||
*/ | ||
public function setMigrationsColumnLength($columnLength) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing type declaration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The codebase I'm PR'ing against doesn't have type declarations, so I was trying to stay consistent with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The codebase has already been changed to require PHP 7.1 😉
* | ||
* @return int $migrationsColumnLength The migration string column length. | ||
*/ | ||
public function getMigrationsColumnLength() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing type declaration
@SlvrEagle23 do you want to try updating this for 2.0? Do you mind if I update it and merge? |
@jwage If you want to take it on, by all means I don't mind. I don't have the same dev environment set up as I did when I submitted it, and I updated much of my own code to use MariaDB 10.2, which allows the longer fields. |
Fixes #514
Because the Migrations Configuration object's
createMigrationTable()
function references private properties, it is difficult if not impossible to override on a per-project basis if necessary to specify a user-configurable string length. Adding another private property seems like the most low-friction way of resolving the issue.