EllisLab/CodeIgniter — Issue #1005: MySQL forge _alter_table() implementation differs from MSSQL, SQLSRV, PDO, etc.
Author: Radio
Created: 2012-01-31 15:07:51+00:00
State: open

CI_DB_mysql_forge::_alter_table() implementation differs from other drivers. It takes $fields array instead of splitted fild data like other drivers.

MySQL:
function _alter_table($alter_type, $table, $fields, $after_field = '')

MSSQL:
function _alter_table($alter_type, $table, $column_name, $column_definition = '', $default_value = '', $null = '', $after_field = '')

Shouldn't all forges have same interface?