Commit 8d1d96b7 8d1d96b70b0a258ad585be99a3eb28b4bd6e9924 by wulianyou

修改readme

1 parent 3b4e386c
...@@ -67,6 +67,8 @@ $ npm stop ...@@ -67,6 +67,8 @@ $ npm stop
67 "lock_height": "0" 67 "lock_height": "0"
68 }]} 68 }]}
69 ``` 69 ```
70 ## 数据库
70 71
72 本项目使用的是sqlite数据库在database目录下
71 73
72 [egg]: https://eggjs.org 74 [egg]: https://eggjs.org
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -55,7 +55,7 @@ module.exports = appInfo => { ...@@ -55,7 +55,7 @@ module.exports = appInfo => {
55 // But for this example, we will just use a local SQLite database. 55 // But for this example, we will just use a local SQLite database.
56 // const sequelize = new Sequelize(process.env.DB_CONNECTION_URL); 56 // const sequelize = new Sequelize(process.env.DB_CONNECTION_URL);
57 dialect: 'sqlite', 57 dialect: 'sqlite',
58 storage: './database/ddn-ui-dev.db', 58 storage: './database/ddn-wallet-test.db',
59 logQueryParameters: true, 59 logQueryParameters: true,
60 benchmark: true, 60 benchmark: true,
61 logging: false, 61 logging: false,
......
1 { 1 {
2 "development": { 2 "development": {
3 "storage": "./database/ddn-ui-dev.db", 3 "storage": "./database/ddn-wallet-test.db",
4 "dialect": "sqlite" 4 "dialect": "sqlite"
5 }, 5 },
6 "test": { 6 "test": {
7 "storage": "./database/database_test.db", 7 "storage": "./database/ddn-wallet-test.db",
8 "dialect": "sqlite" 8 "dialect": "sqlite"
9 }, 9 },
10 "production": { 10 "production": {
11 "storage": "./database/ddn-ui-prod.db", 11 "storage": "./database/ddn-wallet-test.db",
12 "dialect": "sqlite" 12 "dialect": "sqlite"
13 } 13 }
14 } 14 }
......