From c70231ef39741812a69b930ed518c2257342fbc8 Mon Sep 17 00:00:00 2001 From: Sushant Date: Sat, 9 Sep 2017 15:04:49 +0530 Subject: [PATCH] added: warn when using with Sequelize v4 --- CHANGELOG.md | 3 +++ src/helpers/view-helper.js | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff2254ff..8d10691d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/helpers/view-helper.js b/src/helpers/view-helper.js index e1e9702d..af946a30 100644 --- a/src/helpers/view-helper.js +++ b/src/helpers/view-helper.js @@ -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,