[refactor] remove email field in account

This commit is contained in:
Eric Dvorsak 2018-10-26 19:01:42 +02:00 committed by yenda
parent 38ec77b97b
commit a6da75f8e9
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
4 changed files with 14 additions and 2 deletions

View File

@ -211,3 +211,5 @@
(def v14 (assoc-in v13
[:properties :desktop-alpha-release-warning-shown?]
{:type :bool :default false}))
(def v15 (update v14 :properties dissoc :email))

View File

@ -59,6 +59,11 @@
extension/v12
account/v14])
(def v16 [network/v1
bootnode/v4
extension/v12
account/v15])
;; put schemas ordered by version
(def schemas [{:schema v1
:schemaVersion 1
@ -104,4 +109,7 @@
:migration migrations/v14}
{:schema v15
:schemaVersion 15
:migration migrations/v15}])
:migration migrations/v15}
{:schema v16
:schemaVersion 16
:migration migrations/v16}])

View File

@ -111,3 +111,6 @@
(defn v15 [old-realm new-realm]
(log/debug "migrating base database v15: " old-realm new-realm))
(defn v16 [old-realm new-realm]
(log/debug "migrating base database v16: " old-realm new-realm))

View File

@ -67,7 +67,6 @@
:public-key nil}}
current-account {:last-updated 0,
:address "f23d28f538fd8cd4a90c2d96ca89f5bccca5383f",
:email nil,
:signed-up? true,
:sharing-usage-data? false,
:name "User A",