forked from mirrors/easyappointments
Added fresh option to migrations
This commit is contained in:
parent
9cde499f9a
commit
fc362b340b
1 changed files with 8 additions and 1 deletions
|
@ -48,9 +48,16 @@ class Console extends EA_Controller {
|
|||
* Usage:
|
||||
*
|
||||
* php index.php console migrate
|
||||
*
|
||||
* @param string $type
|
||||
*/
|
||||
public function migrate()
|
||||
public function migrate($type = '')
|
||||
{
|
||||
if ($type === 'fresh' && $this->migration->version(0) === FALSE)
|
||||
{
|
||||
show_error($this->migration->error_string());
|
||||
}
|
||||
|
||||
if ($this->migration->current() === FALSE)
|
||||
{
|
||||
show_error($this->migration->error_string());
|
||||
|
|
Loading…
Reference in a new issue