Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eggjs/egg-sequelize
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed May 11, 2017
2 parents ee31471 + 373d0e1 commit d2672c2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .sequelizerc

This file was deleted.

2 changes: 1 addition & 1 deletion bin/egg-sequelize
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
EGG_SEQUELIZE_ROOT=./node_modules/egg-sequelize
$EGG_SEQUELIZE_ROOT/node_modules/sequelize-cli/bin/sequelize --optionsPath $EGG_SEQUELIZE_ROOT/.sequelizerc $@
$EGG_SEQUELIZE_ROOT/node_modules/sequelize-cli/bin/sequelize --optionsPath $EGG_SEQUELIZE_ROOT/lib/sequelizerc.js $@
File renamed without changes.
7 changes: 7 additions & 0 deletions lib/sequelizerc.js
@@ -0,0 +1,7 @@
'use strict';
const path = require('path');

module.exports = {
config: path.resolve('./node_modules/egg-sequelize/lib/database.js'),
'migrations-path': path.resolve('migrations'),
};
11 changes: 5 additions & 6 deletions package.json
Expand Up @@ -45,13 +45,12 @@
"egg-sequelize": "bin/egg-sequelize"
},
"files": [
"app.js",
"agent.js",
"database.js",
".sequelizerc",
"config",
"app",
"lib"
"config",
"agent.js",
"lib",
"app.js",
"bin"
],
"ci": {
"version": "6, 7"
Expand Down

0 comments on commit d2672c2

Please sign in to comment.