public function run() {
		$options    = $this->get_class_vars( 'Base', 'options' );
		$db_version = isset( $options['db_version'] ) ? (int) $options['db_version'] : 6000;

		if ( $db_version === $this->db_version ) {
			return;
		}

		switch ( $db_version ) {
			case $db_version < $this->db_version:
				$this->delete_flush_cache();
				break;
			default:
				break;
		}

		$options = array_merge( (array) $options, [ 'db_version' => (int) $this->db_version ] );
		update_site_option( 'github_updater', $options );
	}
public function run() {
		$options    = $this->get_class_vars( 'Base', 'options' );
		$db_version = isset( $options['db_version'] ) ? (int) $options['db_version'] : 6000;

		if ( $db_version === $this->db_version ) {
			return;
		}

		switch ( $db_version ) {
			case $db_version < $this->db_version:
				$this->delete_flush_cache();
				break;
			default:
				break;
		}

		$options = array_merge( (array) $options, [ 'db_version' => (int) $this->db_version ] );
		update_site_option( 'github_updater', $options );
	}
public function run ( ) { $ options = $ this -> get_class_vars ( 'Base' , 'options' ) ; $ db_version = isset ( $ options [ 'db_version' ] ) ? ( int ) $ options [ 'db_version' ] : 6000 ; if ( $ db_version === $ this -> db_version ) { return ; } switch ( $ db_version ) { case $ db_version < $ this -> db_version : $ this -> delete_flush_cache ( ) ; break ; default : break ; } $ options = array_merge ( ( array ) $ options , [ 'db_version' => ( int ) $ this -> db_version ] ) ; update_site_option ( 'github_updater' , $ options ) ; }
Run update check against db_version.
Run update check against db_version .