Fix
This commit is contained in:
parent
f4956721ff
commit
ed0f753fa9
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,7 @@ function upgrade_service_databases($continue_r) {
|
||||||
$con = null;
|
$con = null;
|
||||||
$con = connect_database($continue, "shard");
|
$con = connect_database($continue, "shard");
|
||||||
$continue = ($con != null);
|
$continue = ($con != null);
|
||||||
|
global $db_nel;
|
||||||
for ($i = 1; $i <= $db_nel; $i++) {
|
for ($i = 1; $i <= $db_nel; $i++) {
|
||||||
if ($continue && get_db_version("shard") < $i) {
|
if ($continue && get_db_version("shard") < $i) {
|
||||||
$continue = update_database_structure($continue, $con, "nel_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
$continue = update_database_structure($continue, $con, "nel_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
||||||
|
@ -76,6 +77,7 @@ function upgrade_service_databases($continue_r) {
|
||||||
$con = null;
|
$con = null;
|
||||||
$con = connect_database($continue, "tool");
|
$con = connect_database($continue, "tool");
|
||||||
$continue = ($con != null);
|
$continue = ($con != null);
|
||||||
|
global $db_nel_tool;
|
||||||
for ($i = 1; $i <= $db_nel_tool; $i++) {
|
for ($i = 1; $i <= $db_nel_tool; $i++) {
|
||||||
if ($continue && get_db_version("tool") < $i) {
|
if ($continue && get_db_version("tool") < $i) {
|
||||||
$continue = update_database_structure($continue, $con, "nel_tool_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
$continue = update_database_structure($continue, $con, "nel_tool_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
||||||
|
@ -93,6 +95,7 @@ function upgrade_support_databases($continue_r) {
|
||||||
$con = null;
|
$con = null;
|
||||||
$con = connect_database($continue, "web");
|
$con = connect_database($continue, "web");
|
||||||
$continue = ($con != null);
|
$continue = ($con != null);
|
||||||
|
global $db_nel_ams;
|
||||||
for ($i = 1; $i <= $db_nel_ams; $i++) {
|
for ($i = 1; $i <= $db_nel_ams; $i++) {
|
||||||
if ($continue && get_db_version("web") < $i) {
|
if ($continue && get_db_version("web") < $i) {
|
||||||
$continue = update_database_structure($continue, $con, "nel_ams_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
$continue = update_database_structure($continue, $con, "nel_ams_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
||||||
|
@ -104,6 +107,7 @@ function upgrade_support_databases($continue_r) {
|
||||||
$con = null;
|
$con = null;
|
||||||
$con = connect_database($continue, "lib");
|
$con = connect_database($continue, "lib");
|
||||||
$continue = ($con != null);
|
$continue = ($con != null);
|
||||||
|
global $db_nel_ams_lib;
|
||||||
for ($i = 1; $i <= $db_nel_ams_lib; $i++) {
|
for ($i = 1; $i <= $db_nel_ams_lib; $i++) {
|
||||||
if ($continue && get_db_version("lib") < $i) {
|
if ($continue && get_db_version("lib") < $i) {
|
||||||
$continue = update_database_structure($continue, $con, "nel_ams_lib_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
$continue = update_database_structure($continue, $con, "nel_ams_lib_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
||||||
|
@ -121,6 +125,7 @@ function upgrade_domain_databases($continue_r) {
|
||||||
$con = null;
|
$con = null;
|
||||||
$con = connect_database($continue, "ring");
|
$con = connect_database($continue, "ring");
|
||||||
$continue = ($con != null);
|
$continue = ($con != null);
|
||||||
|
global $db_ring_domain;
|
||||||
for ($i = 1; $i <= $db_ring_domain; $i++) {
|
for ($i = 1; $i <= $db_ring_domain; $i++) {
|
||||||
if ($continue && get_db_version("ring") < $i) {
|
if ($continue && get_db_version("ring") < $i) {
|
||||||
$continue = update_database_structure($continue, $con, "ring_domain_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
$continue = update_database_structure($continue, $con, "ring_domain_" . str_pad($i, 5, "0", STR_PAD_LEFT) . ".sql");
|
||||||
|
|
Loading…
Reference in a new issue