Welcome Guest, Not a member yet? Register   Sign In
Migration
#3

[eluser]CroNiX[/eluser]
I'm not sure you are using dbforge::add_field() correctly, either. The user guide shows passing an array of arrays containing individual field parameter definitions. You are passing an array of raw SQL field definitions.

Instead of
'session_id VARCHAR(40) DEFAULT \'0\' NOT NULL'

it should be something like
Code:
array(
  'session_id' => array(
    'type' => 'varchar',
    'constraint' => 40,
    'default' => '0',
    'null'  => FALSE
  ),
  'ip_address' => array(
    //parameters for this field...
  )
)


Messages In This Thread
Migration - by El Forum - 11-13-2013, 12:04 PM
Migration - by El Forum - 11-14-2013, 02:30 AM
Migration - by El Forum - 11-14-2013, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB