Legacy_Upgrades::upgrade_to_1_0_6()

Upgrades to legacy version 1.0.6.

Description

See also

Source

File: src/components/legacy-upgrades.php

	protected function upgrade_to_1_0_6() {
		global $wpdb;

		$wpdb->update( $wpdb->posts, array(
			'post_type'	=> $this->get_prefix() . 'form',
		), array(
			'post_type'	=> 'torro-forms',
		), array( '%s' ), array( '%s' ) );

		$wpdb->update( $wpdb->term_taxonomy, array(
			'taxonomy'	=> $this->get_prefix() . 'form_category',
		), array(
			'taxonomy'	=> 'torro-forms-categories',
		), array( '%s' ), array( '%s' ) );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.