diff options
| author | BoHong Li | 2017-03-27 19:23:00 +0800 | 
|---|---|---|
| committer | BoHong Li | 2017-03-27 19:23:00 +0800 | 
| commit | 6f14822413eeb43aae1298163699f87bc1ce11e7 (patch) | |
| tree | 3926b7d30fdba807764a9fd68fb5671ed8a66ae5 /lib/migrations/20150915153700-change-notes-title-to-text.js | |
| parent | b2985085d011cad374c76ae75f548fdefb15c258 (diff) | |
fix: Add missing migration
Diffstat (limited to '')
| -rw-r--r-- | lib/migrations/20150915153700-change-notes-title-to-text.js | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/migrations/20150915153700-change-notes-title-to-text.js b/lib/migrations/20150915153700-change-notes-title-to-text.js new file mode 100644 index 00000000..6f7307d1 --- /dev/null +++ b/lib/migrations/20150915153700-change-notes-title-to-text.js @@ -0,0 +1,14 @@ +'use strict' +module.exports = { +  up: function (queryInterface, Sequelize) { +    return queryInterface.changeColumn('Notes', 'title', { +      type: Sequelize.TEXT +    }) +  }, + +  down: function (queryInterface, Sequelize) { +    return queryInterface.changeColumn('Notes', 'title', { +      type: Sequelize.STRING +    }) +  } +}  | 
