<?php
namespace Change\Commands;

use Change\Commands\Events\Event;

/**
 * @name \Change\Commands\GenerateDbSchema
 */
class GenerateDbSchema
{
	/**
	 * @param Event $event
	 */
	public function execute(Event $event)
	{
		$application = $event->getApplication();
		$applicationServices = new \Change\Application\ApplicationServices($application);
		$generator = new \Change\Db\Schema\Generator($application->getWorkspace(), $applicationServices->getDbProvider());
		try 
		{
			if ($event->getParam('with-modules'))
			{
				$generator->generate();
				$event->addInfoMessage('Change and Modules Db schema generated.');
			}
			else
			{
				$generator->generateSystemSchema();
				$event->addInfoMessage('Change Db schema generated.');
			}
		} 
		catch (\Exception $e )
		{
			$applicationServices->getLogging()->exception($e);
			$event->addErrorMessage($e->getMessage());
		}
	}
}
<?php
namespace Change\Commands;

use Change\Commands\Events\Event;

/**
 * @name \Change\Commands\GenerateDbSchema
 */
class GenerateDbSchema
{
	/**
	 * @param Event $event
	 */
	public function execute(Event $event)
	{
		$application = $event->getApplication();
		$applicationServices = new \Change\Application\ApplicationServices($application);
		$generator = new \Change\Db\Schema\Generator($application->getWorkspace(), $applicationServices->getDbProvider());
		try 
		{
			if ($event->getParam('with-modules'))
			{
				$generator->generate();
				$event->addInfoMessage('Change and Modules DB schema generated.');
			}
			else
			{
				$generator->generateSystemSchema();
				$event->addInfoMessage('Change DB schema generated (to generate Modules DB schema, add -m option).');
			}
		} 
		catch (\Exception $e )
		{
			$applicationServices->getLogging()->exception($e);
			$event->addErrorMessage($e->getMessage());
		}
	}
}
Add precision in generate-db-schema's messages.
[ENHANCE] Add precision in generate-db-schema's messages.
