<gh_stars>1-10
'use strict';

module.exports = {
  up: async function(queryInterface, Sequelize) {
    return [
      await queryInterface.changeColumn("Notes", "content", {type: Sequelize.TEXT("long")}),
      await queryInterface.changeColumn("Notes", "authorship", {type: Sequelize.TEXT("long")}),
      await queryInterface.changeColumn("Revisions", "patch", {type: Sequelize.TEXT("long")}),
      await queryInterface.changeColumn("Revisions", "content", {type: Sequelize.TEXT("long")}),
      await queryInterface.changeColumn("Revisions", "lastContent", {type: Sequelize.TEXT("long")}),
      await queryInterface.changeColumn("Revisions", "authorship", {type: Sequelize.TEXT("long")})
    ];
  },

  down: async function(queryInterface, Sequelize) {
    return [
      await queryInterface.changeColumn("Notes", "content", {type: Sequelize.TEXT}),
      await queryInterface.changeColumn("Notes", "authorship", {type: Sequelize.TEXT}),
      await queryInterface.changeColumn("Revisions", "patch", {type: Sequelize.TEXT}),
      await queryInterface.changeColumn("Revisions", "content", {type: Sequelize.TEXT}),
      await queryInterface.changeColumn("Revisions", "lastContent", {type: Sequelize.TEXT}),
      await queryInterface.changeColumn("Revisions", "authorship", {type: Sequelize.TEXT})
    ];
  }
};
