public function update_extension($current = '')
    {
        if ($current == '' || $current == $this->version) {
            return false;
        }

        if ($current < '0.1') {
            // Update to version 1.0
        }

        // Add any new hooks
        $this->add_new_hooks();

        ee()->db->where('class', $this->package);
        ee()->db->update(
            'extensions',
            ['version' => $this->version]
        );
    }