cakephp / phinx

PHP Database Migrations for Everyone
https://phinx.org
MIT License
4.45k stars 895 forks source link

Fix renaming column with Extra info set #2275

Closed MasterOdin closed 3 months ago

MasterOdin commented 3 months ago

Closes #2269

PR fixes a bug introduced in #2253 where we were no longer prepending a space on the $extra variable, and so if it had a value along with $null, then the two would be appended together without a space and cause a syntax error. I've re-introduced the space in front of $extra that used to be there, as well as added a test to validate the fix.