mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-21 23:42:21 +03:00
Switch to go-to-latest database migration configuration for simplicity (#1213)
This commit is contained in:
parent
1cf4f5246f
commit
cd1842fc40
4 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
|||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 21;
|
||||
$config['migration_version'] = 0;
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -351,7 +351,7 @@ class Backend extends EA_Controller {
|
|||
throw new Exception('You do not have the required privileges for this task!');
|
||||
}
|
||||
|
||||
if ( ! $this->migration->current())
|
||||
if ( ! $this->migration->latest())
|
||||
{
|
||||
throw new Exception($this->migration->error_string());
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ class Console extends EA_Controller {
|
|||
show_error($this->migration->error_string());
|
||||
}
|
||||
|
||||
if ($this->migration->current() === FALSE)
|
||||
if ($this->migration->latest() === FALSE)
|
||||
{
|
||||
show_error($this->migration->error_string());
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ class Installation extends EA_Controller {
|
|||
$admin = $this->input->post('admin');
|
||||
$company = $this->input->post('company');
|
||||
|
||||
if ( ! $this->migration->current())
|
||||
if ( ! $this->migration->latest())
|
||||
{
|
||||
throw new Exception($this->migration->error_string());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue