summaryrefslogtreecommitdiffstats
path: root/utils/test/vnfcatalogue/helpers/README.md
diff options
context:
space:
mode:
authorKumar Rishabh <shailrishabh@gmail.com>2017-02-03 02:45:13 +0530
committerKumar Rishabh <shailrishabh@gmail.com>2017-02-03 02:51:36 +0530
commita305ee3192280867b40d5294d3cb48b189924cc5 (patch)
treec308b07a14d325cdecb93d73e60a9c096596325b /utils/test/vnfcatalogue/helpers/README.md
parent55289ef5a17e75e04eb4c9747ffb161da54fa434 (diff)
Added helper scripts
Helper scripts to migrate schema for the mysql database. Change-Id: Id598c398318967a117a4dbaa3dc21eab22b24d68 Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Diffstat (limited to 'utils/test/vnfcatalogue/helpers/README.md')
-rw-r--r--utils/test/vnfcatalogue/helpers/README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/test/vnfcatalogue/helpers/README.md b/utils/test/vnfcatalogue/helpers/README.md
new file mode 100644
index 000000000..6c0ca78c3
--- /dev/null
+++ b/utils/test/vnfcatalogue/helpers/README.md
@@ -0,0 +1,22 @@
+# Helper Directory
+
+## Helper to migrate database
+
+First make sure nodejs and mysql are installed. Then use
+
+```bash
+npm install bookshelf mysql knex when lodash --save
+```
+
+Create a database named **vnf_catalogue**.
+Enter the mysql credentials in migrate.js.
+
+Then use
+
+```bash
+node migrate
+```
+
+If successful the script will return success message. The current script is
+idempotent is nature, if run twice it will just return error and write nothing.
+