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 3dd57021e2
commit 17e68c9726
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());
}