Skip to content

Commit

Permalink
added: warn when using with Sequelize v4
Browse files Browse the repository at this point in the history
  • Loading branch information
sushantdhiman committed Sep 9, 2017
1 parent a6290fd commit c70231e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

## Upcoming

### Added
- Warning with Sequelize v4

## v3.0.0-0 - 8th, Sep 2017

### Removed
Expand Down
10 changes: 10 additions & 0 deletions src/helpers/view-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ module.exports = {
this.log();
this.log(clc.underline('Sequelize CLI [' + versions.join(', ') + ']'));
this.log();

// Remove in v4
if (helpers.version.getOrmVersion().match(/^4./)) {
this.log(clc.yellow(
'WARNING: This version of Sequelize CLI is not ' +
'fully compatible with Sequelize v4. ' +
'https://github.com/sequelize/cli#sequelize-support'
));
this.log();
}
},

log: console.log,
Expand Down

0 comments on commit c70231e

Please sign in to comment.