mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Don't write version if upgrade failed
This commit is contained in:
parent
fed7dc17ac
commit
795b5a9aa0
1 changed files with 6 additions and 4 deletions
|
@ -15,11 +15,13 @@ $db_ring_domain = 1;
|
|||
function set_db_version($continue_r, $name, $version) {
|
||||
$continue = $continue_r;
|
||||
|
||||
if ($continue) {
|
||||
if (file_put_contents("db_version_" . $name, (string)$version)) {
|
||||
} else {
|
||||
printalert("danger", "Failed to set database version");
|
||||
$continue = false;
|
||||
}
|
||||
}
|
||||
|
||||
return $continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue