Single quote in comment breaks sql
Closed this issue · 3 comments
JohnWE commented
When I have a column like this:
$this->table('test', 'col_name')
->addColumn('col_name', 'integer', ['comment' => 'Row ID\'s favorite comment'])
->create();
In MySQL, I get an error creating the table. It's because of the comment.
lulco commented
Hi thanks for reporting, can you provide failing test case?
For example here https://github.com/lulco/phoenix/blob/master/testing_migrations/phoenix/20150529123120_init.php
JohnWE commented
Thanks for fixing!