From 6f14822413eeb43aae1298163699f87bc1ce11e7 Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Mon, 27 Mar 2017 19:23:00 +0800 Subject: fix: Add missing migration --- .../20150915153700-change-notes-title-to-text.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/migrations/20150915153700-change-notes-title-to-text.js (limited to 'lib/migrations/20150915153700-change-notes-title-to-text.js') 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 + }) + } +} -- cgit v1.2.3