|
|
@ -15,11 +15,13 @@ $db_ring_domain = 1;
|
|
|
|
function set_db_version($continue_r, $name, $version) {
|
|
|
|
function set_db_version($continue_r, $name, $version) {
|
|
|
|
$continue = $continue_r;
|
|
|
|
$continue = $continue_r;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($continue) {
|
|
|
|
if (file_put_contents("db_version_" . $name, (string)$version)) {
|
|
|
|
if (file_put_contents("db_version_" . $name, (string)$version)) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
printalert("danger", "Failed to set database version");
|
|
|
|
printalert("danger", "Failed to set database version");
|
|
|
|
$continue = false;
|
|
|
|
$continue = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $continue;
|
|
|
|
return $continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|