MigrateCommand class for multiple sites using one code base

Comparing #1 with #2

Revision #2 was created by Hudson Nguyen Hudson Nguyen on Dec 10, 2012, 1:02:02 AM.

Fix a typo 'makr'

Content

[...]
public $domain = '';
protected $_db;

public function beforeAction($action,$params)
{
if (in_array(strtolower($action),array('up','down','safeup','safedown','redo','to','new','history','ma
krk')) && $this->domain == '')
{
echo 'You need to specify the domain as Xpress support multi-sites and multi-database.',"\n",'i.e: --domain=www.domain.com',"\n";
return false;
}
[...]