summaryrefslogtreecommitdiff
path: root/lib/migrations/20180209120907-longtext-of-authorship.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/migrations/20180209120907-longtext-of-authorship.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/migrations/20180209120907-longtext-of-authorship.js b/lib/migrations/20180209120907-longtext-of-authorship.js
new file mode 100644
index 00000000..4cca5444
--- /dev/null
+++ b/lib/migrations/20180209120907-longtext-of-authorship.js
@@ -0,0 +1,13 @@
+'use strict'
+
+module.exports = {
+ up: function (queryInterface, Sequelize) {
+ queryInterface.changeColumn('Notes', 'authorship', {type: Sequelize.TEXT('long')})
+ queryInterface.changeColumn('Revisions', 'authorship', {type: Sequelize.TEXT('long')})
+ },
+
+ down: function (queryInterface, Sequelize) {
+ queryInterface.changeColumn('Notes', 'authorship', {type: Sequelize.TEXT})
+ queryInterface.changeColumn('Revisions', 'authorship', {type: Sequelize.TEXT})
+ }
+}