Skip to content

migration bug? #2020

@hakimihamdan88

Description

@hakimihamdan88
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

ALTER TABLE `news`Array, MODIFY

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()
    {
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions