phinx
phinx copied to clipboard
RenameColumn generating SQL syntax
Using phinx version 0.16.0. Using the mysql adapter.
Code example:
$table = $this->table('trades');
$table
->renameColumn('uid_a', 'initiatorUserId')
->update();
The resulting SQL command is:
ALTER TABLE `trades` CHANGE COLUMN `uid_a` `initiatorUserId` int NOT NULLAUTO_INCREMENT COMMENT ''
With the issue of course being (lack of space between NULL and AUTO_INCREMENT)
NOT NULLAUTO_INCREMENT