summaryrefslogtreecommitdiff
path: root/lib/migrations/20150915153700-change-notes-title-to-text.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/migrations/20150915153700-change-notes-title-to-text.js')
-rw-r--r--lib/migrations/20150915153700-change-notes-title-to-text.js14
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
+ })
+ }
+}