dbforge->add_field(array( 'id' => array( 'type' => 'INT', 'constraint' => '6', 'unsigned' => TRUE, 'auto_increment' => TRUE, ), 'regioid' => array( 'type' => 'INT', 'constraint' => '3', 'unsigned' => TRUE, ), 'jaar' => array( 'type' => 'INT', 'unsigned' => TRUE, 'constraint' => '4', ), 'naam' => array( 'type' => 'VARCHAR', 'constraint' => '80', ), 'ronde' => array( 'type' => 'INT', 'constraint' => '1', 'unsigned' => TRUE, ), 'actief' => array( 'type' => 'INT', 'constraint' => '1', 'unsigned' => TRUE, ), )); $this->dbforge->add_key('id', TRUE); $this->dbforge->create_table('lijst'); } public function down() { $this->dbforge->drop_table('lijst'); } }