diff --git a/include/Nebula.h b/include/Nebula.h index 85e30941df..e8e7b7930e 100644 --- a/include/Nebula.h +++ b/include/Nebula.h @@ -375,7 +375,7 @@ public: */ static string shared_db_version() { - return "5.6.0"; + return "5.10.0"; } /** @@ -384,7 +384,7 @@ public: */ static string local_db_version() { - return "5.8.0"; + return "5.10.0"; } /** diff --git a/install.sh b/install.sh index 694510fa29..2ffa8352b6 100755 --- a/install.sh +++ b/install.sh @@ -1499,7 +1499,8 @@ ONEDB_SHARED_MIGRATOR_FILES="src/onedb/shared/2.0_to_2.9.80.rb \ src/onedb/shared/5.3.80_to_5.4.0.rb \ src/onedb/shared/5.4.0_to_5.4.1.rb \ src/onedb/shared/5.4.1_to_5.5.80.rb \ - src/onedb/shared/5.5.80_to_5.6.0.rb" + src/onedb/shared/5.5.80_to_5.6.0.rb \ + src/onedb/shared/5.6.0_to_5.10.0.rb" ONEDB_LOCAL_MIGRATOR_FILES="src/onedb/local/4.5.80_to_4.7.80.rb \ src/onedb/local/4.7.80_to_4.9.80.rb \ @@ -1515,7 +1516,7 @@ ONEDB_LOCAL_MIGRATOR_FILES="src/onedb/local/4.5.80_to_4.7.80.rb \ src/onedb/local/5.5.80_to_5.6.0.rb \ src/onedb/local/5.6.0_to_5.7.80.rb \ src/onedb/local/5.7.80_to_5.8.0.rb \ - src/onedb/local/5.8.0_to_5.9.80.rb" + src/onedb/local/5.8.0_to_5.10.0.rb" ONEDB_PATCH_FILES="src/onedb/patches/4.14_monitoring.rb \ src/onedb/patches/history_times.rb" diff --git a/src/onedb/database_schema.rb b/src/onedb/database_schema.rb index 994e027bbb..e727237d66 100644 --- a/src/onedb/database_schema.rb +++ b/src/onedb/database_schema.rb @@ -105,13 +105,13 @@ class OneDBBacKEnd index_sqlite: ["CREATE INDEX state_oid_idx ON vm_pool (state, oid);", "CREATE INDEX applied_idx ON logdb (applied);"] }, - "5.9.80" => { + "5.10.0" => { logdb: "log_index BIGINT UNSIGNED PRIMARY KEY, term INTEGER, sqlcmd MEDIUMTEXT, " << "timestamp INTEGER, fed_index BIGINT UNSIGNED, applied BOOLEAN" } } - LATEST_DB_VERSION = "5.9.80" + LATEST_DB_VERSION = "5.10.0" def get_schema(type, version = nil) if !version diff --git a/src/onedb/local/5.8.0_to_5.9.80.rb b/src/onedb/local/5.8.0_to_5.10.0.rb similarity index 99% rename from src/onedb/local/5.8.0_to_5.9.80.rb rename to src/onedb/local/5.8.0_to_5.10.0.rb index f1b344156b..6303fd74de 100644 --- a/src/onedb/local/5.8.0_to_5.9.80.rb +++ b/src/onedb/local/5.8.0_to_5.10.0.rb @@ -29,7 +29,7 @@ include OpenNebula module Migrator def db_version - '5.9.80' + '5.10.0' end def one_version diff --git a/src/onedb/shared/5.6.0_to_5.10.0.rb b/src/onedb/shared/5.6.0_to_5.10.0.rb new file mode 100644 index 0000000000..2a4dce6ecc --- /dev/null +++ b/src/onedb/shared/5.6.0_to_5.10.0.rb @@ -0,0 +1,33 @@ +# -------------------------------------------------------------------------- # +# Copyright 2002-2019, OpenNebula Project, OpenNebula Systems # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +include OpenNebula + +module Migrator + + def db_version + '5.10.0' + end + + def one_version + 'OpenNebula 5.9.80' + end + + def up + true + end + +end