CodeIgniter Forums

Full Version: Rename a field with dbforge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to rename a field, like this:
PHP Code:
$fields = array(
'old_name' => array(
'name' => 'new_name',
'type' => 'VARCHAR'
This gives an error message: MySQL syntax error on line 2, near ''
I can't see what I'm doing wrong here. Any help is appreciated.
And what did the error say was wrong it shows the query part.