fix: make sure that confs when checking if it is changed sorted

This commit is contained in:
Andras Bacsai
2024-04-15 15:45:50 +02:00
parent d94c9e522c
commit 5b0a942b42
10 changed files with 17 additions and 16 deletions

View File

@@ -46,7 +46,7 @@ class StandaloneMysql extends BaseModel
public function isConfigurationChanged(bool $save = false)
{
$newConfigHash = $this->image . $this->ports_mappings . $this->mysql_conf;
$newConfigHash .= json_encode($this->environment_variables()->get('updated_at'));
$newConfigHash .= json_encode($this->environment_variables()->get('value')->sort());
$newConfigHash = md5($newConfigHash);
$oldConfigHash = data_get($this, 'config_hash');
if ($oldConfigHash === null) {