Switch to go-to-latest database migration configuration for simplicity (#1213)

This commit is contained in:
Alex Tselegidis 2022-02-23 11:29:45 +01:00
parent 1cf4f5246f
commit cd1842fc40
4 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 21;
$config['migration_version'] = 0;
/*

View File

@ -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());
}

View File

@ -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());
}

View File

@ -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());
}