src/SnooPHP/Model/Migration.php
public function run($prog = "migrate")
	{
		switch (trim($prog))
		{
			case "migrate":
				return $this->migrate();

			case "drop":
				return $this->drop();

			case "reset":
				return $this->drop() & $this->migrate();
			
			default:
				error_log("\n\e[1;31m!\e[0m program $prog not applicable\n");
				return false;
		}
	}
public function run($prog = "migrate")
	{
		switch (trim($prog))
		{
			case "migrate":
				return $this->migrate();

			case "drop":
				return $this->drop();

			case "reset":
				return $this->drop() & $this->migrate();
			
			default:
				error_log("\n\e[1;31m!\e[0m program $prog not applicable\n");
				return false;
		}
	}
public function run ( $ prog = "migrate" ) { switch ( trim ( $ prog ) ) { case "migrate" : return $ this -> migrate ( ) ; case "drop" : return $ this -> drop ( ) ; case "reset" : return $ this -> drop ( ) & $ this -> migrate ( ) ; default : error_log ( "\n\e[1;31m!\e[0m program $prog not applicable\n" ) ; return false ; } }
Run a migration program

@param string $prog program to run ('migrate', 'drop' or 'reset')

@return bool program status
Run a migration program