ci->dbforge->add_column('user_api', array('permission_enable' => array('type' => 'TINYINT', 'default' => 0))); $this->ci->dbforge->add_field([ 'api_id' => [ 'type' => 'INT', 'constraint' => 11, ], 'feature' => [ 'type' => 'VARCHAR', 'constraint' => 50, ], 'capability' => [ 'type' => 'VARCHAR', 'constraint' => 50, ], ]); $this->ci->dbforge->create_table('user_api_permissions', true); } }