manjeshpv / node-oauth2-server-implementation

Using oauth2-server: 3.0.0-b2 & Supports MongoDB, MySQL, PostgreSQL, MSSQL & SQLite
216 stars 103 forks source link

sql seed has users and things commented out #16

Closed TimNZ closed 7 years ago

TimNZ commented 7 years ago

components/oauth/seed.js

Is there a reason for this?

manjeshpv commented 7 years ago

Automatically seed is enabled, If tables not found in db then seed code will execute.

TimNZ commented 7 years ago

Sorry perhaps I was not clear.

Why are users and things table code commented out in seed.js?

https://github.com/manjeshpv/node-oauth2-server-implementation/blob/master/components/oauth/seed.js#L20

I set config.js to use 'sql', and 'sqlite' for db provider, and on app run Sequelize threw an error on init.

Uncommenting the code in seed.js fixes this.