summaryrefslogtreecommitdiffstats
path: root/vnfcatalogue/helpers/README.md
blob: 6c0ca78c37285ddf8c1ea2c5c61cfecd2a5b5f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.