diff --git a/src/status_im/data_store/realm/schemas/account/core.cljs b/src/status_im/data_store/realm/schemas/account/core.cljs index 1631439e28..d48faaa0f3 100644 --- a/src/status_im/data_store/realm/schemas/account/core.cljs +++ b/src/status_im/data_store/realm/schemas/account/core.cljs @@ -11,7 +11,9 @@ [status-im.data-store.realm.schemas.account.v10.core :as v10] [status-im.data-store.realm.schemas.account.v11.core :as v11] [status-im.data-store.realm.schemas.account.v12.core :as v12] - [status-im.data-store.realm.schemas.account.v13.core :as v13])) + [status-im.data-store.realm.schemas.account.v13.core :as v13] + [status-im.data-store.realm.schemas.account.v14.core :as v14] + )) ;; TODO(oskarth): Add failing test if directory vXX exists but isn't in schemas. @@ -54,4 +56,8 @@ :migration v12/migration} {:schema v13/schema :schemaVersion 13 - :migration v13/migration}]) + :migration v13/migration} + {:schema v14/schema + :schemaVersion 14 + :migration v14/migration} + ]) diff --git a/src/status_im/data_store/realm/schemas/account/v13/core.cljs b/src/status_im/data_store/realm/schemas/account/v13/core.cljs index d60b9526a1..ae8bfe13ef 100644 --- a/src/status_im/data_store/realm/schemas/account/v13/core.cljs +++ b/src/status_im/data_store/realm/schemas/account/v13/core.cljs @@ -3,7 +3,7 @@ [status-im.data-store.realm.schemas.account.v1.chat-contact :as chat-contact] [status-im.data-store.realm.schemas.account.v6.command :as command] [status-im.data-store.realm.schemas.account.v9.command-parameter :as command-parameter] - [status-im.data-store.realm.schemas.account.v13.contact :as contact] + [status-im.data-store.realm.schemas.account.v7.contact :as contact] [status-im.data-store.realm.schemas.account.v1.discover :as discover] [status-im.data-store.realm.schemas.account.v1.kv-store :as kv-store] [status-im.data-store.realm.schemas.account.v10.message :as message] diff --git a/src/status_im/data_store/realm/schemas/account/v13/contact.cljs b/src/status_im/data_store/realm/schemas/account/v14/contact.cljs similarity index 97% rename from src/status_im/data_store/realm/schemas/account/v13/contact.cljs rename to src/status_im/data_store/realm/schemas/account/v14/contact.cljs index 68bedadf60..ae097984b6 100644 --- a/src/status_im/data_store/realm/schemas/account/v13/contact.cljs +++ b/src/status_im/data_store/realm/schemas/account/v14/contact.cljs @@ -1,4 +1,4 @@ -(ns status-im.data-store.realm.schemas.account.v13.contact +(ns status-im.data-store.realm.schemas.account.v14.contact (:require [taoensso.timbre :as log])) (def schema {:name :contact diff --git a/src/status_im/data_store/realm/schemas/account/v14/core.cljs b/src/status_im/data_store/realm/schemas/account/v14/core.cljs new file mode 100644 index 0000000000..d6509d279f --- /dev/null +++ b/src/status_im/data_store/realm/schemas/account/v14/core.cljs @@ -0,0 +1,40 @@ +(ns status-im.data-store.realm.schemas.account.v14.core + (:require [status-im.data-store.realm.schemas.account.v11.chat :as chat] + [status-im.data-store.realm.schemas.account.v1.chat-contact :as chat-contact] + [status-im.data-store.realm.schemas.account.v6.command :as command] + [status-im.data-store.realm.schemas.account.v9.command-parameter :as command-parameter] + [status-im.data-store.realm.schemas.account.v14.contact :as contact] + [status-im.data-store.realm.schemas.account.v1.discover :as discover] + [status-im.data-store.realm.schemas.account.v1.kv-store :as kv-store] + [status-im.data-store.realm.schemas.account.v10.message :as message] + [status-im.data-store.realm.schemas.account.v12.pending-message :as pending-message] + [status-im.data-store.realm.schemas.account.v1.processed-message :as processed-message] + [status-im.data-store.realm.schemas.account.v1.request :as request] + [status-im.data-store.realm.schemas.account.v1.tag :as tag] + [status-im.data-store.realm.schemas.account.v1.user-status :as user-status] + [status-im.data-store.realm.schemas.account.v5.contact-group :as contact-group] + [status-im.data-store.realm.schemas.account.v5.group-contact :as group-contact] + [status-im.data-store.realm.schemas.account.v8.local-storage :as local-storage] + [status-im.data-store.realm.schemas.account.v13.handler-data :as handler-data] + [taoensso.timbre :as log])) + +(def schema [chat/schema + chat-contact/schema + command/schema + command-parameter/schema + contact/schema + discover/schema + kv-store/schema + message/schema + pending-message/schema + processed-message/schema + request/schema + tag/schema + user-status/schema + contact-group/schema + group-contact/schema + local-storage/schema + handler-data/schema]) + +(defn migration [old-realm new-realm] + (log/debug "migrating v14 account database: " old-realm new-realm))