dbforge->add_field(array( 'id' => array( 'type' => 'INT', 'unsigned' => TRUE, 'auto_increment' => TRUE, ), 'username' => array( 'type' => 'VARCHAR', 'constraint' => '20', ), 'email' => array( 'type' => 'VARCHAR', 'constraint' => '30', ), 'pass' => array( 'type' => 'VARCHAR', 'constraint' => '65', ), 'admin' => array( 'type' => 'TINYINT', ), )); $this->dbforge->add_key('id', TRUE); $this->dbforge->create_table('users'); } public function down() { $this->dbforge->drop_table('users'); } } Registro en Como-llegar.info

Registro de Usuario