Welcome Guest, Not a member yet? Register   Sign In
Problem with forge
#1

[eluser]caperquy[/eluser]
Hi
I try to create a table using the following code :
Code:
$fields = array
            (
                'mytable' => array
                    (
                         'type' => 'VARCHAR',
                         'constraint' => '100',
                         'character set' => 'latin1',
                         'collate' => 'latin1_swedish_ci'
                      ),
            );
            $this->dbforge->add_field($fields);
        $this->dbforge->create_table('mytable');

Who can explain that the generated SQL is as follows :

CREATE TABLE `mytable` (
`myfield` VARCHAR(100)
) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
Thanks for the answer
CapErquy


Messages In This Thread
Problem with forge - by El Forum - 01-13-2011, 08:36 AM
Problem with forge - by El Forum - 01-13-2011, 11:07 AM
Problem with forge - by El Forum - 01-13-2011, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB