mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
MVC - Exclude migrations for memory models. closes https://github.com/opnsense/core/issues/5843
This commit is contained in:
parent
5cffdd7ef9
commit
816f20f0e5
@ -638,7 +638,9 @@ abstract class BaseModel
|
||||
*/
|
||||
public function runMigrations()
|
||||
{
|
||||
if (version_compare($this->internal_current_model_version, $this->internal_model_version, '<')) {
|
||||
if ($this->internal_mountpoint == ':memory:') {
|
||||
return false;
|
||||
} elseif (version_compare($this->internal_current_model_version, $this->internal_model_version, '<')) {
|
||||
$upgradePerfomed = false;
|
||||
$migObjects = array();
|
||||
$logger = new Logger(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user