src/Extension/BaseExtension.php
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]
        );
    }
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]
        );
    }
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 ] ) ; }
Update Extension.

This function performs any necessary db updates when the extension
page is visited

@return mixed void on update / false if none
Update Extension .