migration bug? #2020

hakimihamdan88 opened this Issue Nov 22, 2012 · 0 comments


None yet
2 participants
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: mysqli/mysqli_forge.php

Line Number: 117

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Array, MODIFY' at line 1


Filename: core/Loader.php

Line Number: 1038
<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Migration_Modify_column_title extends CI_Migration {

    public function up()
        $fields = array(
            'title' => array(
                    'name' => 'title',
                    'type' => 'VARCHAR',
                    'constraint' => 250

        $this->dbforge->modify_column('news', $fields);

    public function down()

narfbg added a commit that referenced this issue Nov 22, 2012

@narfbg narfbg closed this Nov 22, 2012

nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment