Skip to content

Commit

Permalink
Make migration logic deprecated
Browse files Browse the repository at this point in the history
This commit deprecates the migration logic from the
sequelize core references the rewritten CLI and the
new migration engine. Also this commit removes the
respective migration tests.
  • Loading branch information
sdepold committed Dec 19, 2014
1 parent 1c96744 commit 17cb0dc
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 803 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
- [INTERNALS] Update `inflection` dependency to v1.5.3
- [FEATURE] Replaced string error messages for connection errors with error objects. [#2576](https://github.com/sequelize/sequelize/pull/2576)
- [FEATURE] Support for updating fields on duplicate key in bulk update (mysql only) [#2692](https://github.com/sequelize/sequelize/pull/2692)
- [FEATURE] Basic support for Microsoft SQL Server
- [FEATURE] Basic support for Microsoft SQL Server
- [INTERNALS] Deprecate migration logic. This is now implemented in [umzug](https://github.com/sequelize/umzug) and the [CLI](https://github.com/sequelize/cli).

#### Backwards compatability changes
- Some of the string error messages for connection errors have been replaced with actual error instances. Checking for connection errors should now be more consistent.
Expand Down
9 changes: 9 additions & 0 deletions lib/sequelize.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,15 @@ module.exports = (function() {
* @return {Migrator} An instance of Migrator.
*/
Sequelize.prototype.getMigrator = function(options, force) {
deprecated([
'Using the migration engine of the sequelize core is deprecated and will be removed in an',
'upcoming version of sequelize. Please note that migration engine has been replaced with',
'umzug (https://github.com/sequelize/umzug) and that the previously available migrator logic',
'was basically just a wrapper around the query interface of sequelize.',
'The sequelize CLI was rewritten accordingly and is backwards compatible with your existing',
'migrations.'
].join(' '));

var Migrator = require('./migrator');

if (force) {
Expand Down
14 changes: 0 additions & 14 deletions test/assets/migrations/20111117063700-createPerson.coffee

This file was deleted.

17 changes: 0 additions & 17 deletions test/assets/migrations/20111117063700-createPerson.js

This file was deleted.

4 changes: 0 additions & 4 deletions test/assets/migrations/20111130161100-emptyMigration.js

This file was deleted.

9 changes: 0 additions & 9 deletions test/assets/migrations/20111205064000-renamePersonToUser.js

This file was deleted.

39 changes: 0 additions & 39 deletions test/assets/migrations/20111205162700-addSignatureColumnToUser.js

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions test/assets/migrations/20111205167000-addUniqueNameColumnToUser.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions test/assets/migrations/20130909174103-createFunctionGetAnAnswer.js

This file was deleted.

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions test/assets/migrations/20130909175939-createTestTableForTrigger.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 17cb0dc

Please sign in to comment.