<?php

/**
 * Upgrade to version 3.0.6
 */
class Bbpp_ThankMeLater_Upgrade3_0_6 {
	public function ishere() {
		if (get_option("bbpp_thankmelater_version") == "3.0.6") {
			return TRUE;
		}
	}
	
	/**
	 * Upgrade from 3.0.5
	 */
	public function up() {		
		// Update version number
		delete_option("bbpp_thankmelater_version");
		add_option("bbpp_thankmelater_version", "3.0.6", NULL, TRUE);
	}
	
	/**
	 * Downgrade to 3.0.5
	 */
	public function down() {
		update_option("bbpp_thankmelater_version", "3.0.5");
	}
}