payu2107 / zii

Automatically exported from code.google.com/p/zii
0 stars 0 forks source link

rename column can not work on MYSQL #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

$migrate->renameColumn($tableName,$column,$newColumn)

在MYSQL里面不能运行

$migrate->alterColumn($tableName,$column,$type)

不能修改数据库列名

建议完善renameColum,或者修改alterColumn为:
$migrate->alterColumn($tableName,$column,$newName,$type)

Original issue reported on code.google.com by MaxSpeed...@gmail.com on 10 Aug 2011 at 2:42

GoogleCodeExporter commented 8 years ago
dropForeignKey也有问题:
' DROP CONSTRAINT ' . $this->quoteColumnName($name)
应该修改为:DROP FOREIGN KEY

Original comment by MaxSpeed...@gmail.com on 10 Aug 2011 at 3:07