public function history()
	{
		$migration = new \Hubzero\Content\Migration();
		$history   = $migration->history();
		$items     = [];
		$maxFile   = 0;
		$maxUser   = 0;
		$maxScope  = 0;


		if ($history && count($history) > 0)
		{
			$items[] = [
				'File',
				'By',
				'Direction',
				'Date'
			];

			foreach ($history as $entry)
			{
				$items[] = [
					$entry->scope . DS . $entry->file,
					$entry->action_by,
					$entry->direction,
					$entry->date
				];
			}

			$this->output->addTable($items, true);
		}
		else
		{
			$this->addLine('No history to display.');
		}
	}
public function history()
	{
		$migration = new \Hubzero\Content\Migration();
		$history   = $migration->history();
		$items     = [];
		$maxFile   = 0;
		$maxUser   = 0;
		$maxScope  = 0;


		if ($history && count($history) > 0)
		{
			$items[] = [
				'File',
				'By',
				'Direction',
				'Date'
			];

			foreach ($history as $entry)
			{
				$items[] = [
					$entry->scope . DS . $entry->file,
					$entry->action_by,
					$entry->direction,
					$entry->date
				];
			}

			$this->output->addTable($items, true);
		}
		else
		{
			$this->addLine('No history to display.');
		}
	}
public function history ( ) { $ migration = new \ Hubzero \ Content \ Migration ( ) ; $ history = $ migration -> history ( ) ; $ items = [ ] ; $ maxFile = 0 ; $ maxUser = 0 ; $ maxScope = 0 ; if ( $ history && count ( $ history ) > 0 ) { $ items [ ] = [ 'File' , 'By' , 'Direction' , 'Date' ] ; foreach ( $ history as $ entry ) { $ items [ ] = [ $ entry -> scope . DS . $ entry -> file , $ entry -> action_by , $ entry -> direction , $ entry -> date ] ; } $ this -> output -> addTable ( $ items , true ) ; } else { $ this -> addLine ( 'No history to display.' ) ; } }
Report migration run info

@museDescription  Shows a history of previously run migrations

@return  void
Report migration run info