aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/migrations/index.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-12 18:24:33 +0800
committerkumavis <aaron@kumavis.me>2017-01-12 18:24:33 +0800
commit80514d73b5bc6887cea877194091c941cfb9a8e6 (patch)
tree24e051368ffe23fdc126ae30407f79febb4a7760 /app/scripts/migrations/index.js
parentb33c51c0a6c7c8a7b0c0a9a6ca101f874f2db3d1 (diff)
downloadtangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.gz
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.bz2
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.lz
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.xz
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.tar.zst
tangerine-wallet-browser-80514d73b5bc6887cea877194091c941cfb9a8e6.zip
migrations - wip - 005 multivault migration
Diffstat (limited to 'app/scripts/migrations/index.js')
-rw-r--r--app/scripts/migrations/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/scripts/migrations/index.js b/app/scripts/migrations/index.js
new file mode 100644
index 000000000..d2ac221b9
--- /dev/null
+++ b/app/scripts/migrations/index.js
@@ -0,0 +1,18 @@
+/* The migrator has two methods the user should be concerned with:
+ *
+ * getData(), which returns the app-consumable data object
+ * saveData(), which persists the app-consumable data object.
+ */
+
+// Migrations must start at version 1 or later.
+// They are objects with a `version` number
+// and a `migrate` function.
+//
+// The `migrate` function receives the previous
+// config data format, and returns the new one.
+
+module.exports = [
+ require('./002'),
+ require('./003'),
+ require('./004'),
+]