From 484ccf974d0c17524107fcc6d574043850852bd9 Mon Sep 17 00:00:00 2001 From: JinGyeong Jeong Date: Thu, 13 Jun 2019 20:30:48 +0900 Subject: [PATCH] Increase the length of the content field of the custom transaction --- src/migrations/20190613112240-change-custom.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/migrations/20190613112240-change-custom.js diff --git a/src/migrations/20190613112240-change-custom.js b/src/migrations/20190613112240-change-custom.js new file mode 100644 index 0000000..a4cd30e --- /dev/null +++ b/src/migrations/20190613112240-change-custom.js @@ -0,0 +1,17 @@ +"use strict"; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.changeColumn("Customs", "content", { + allowNull: false, + type: Sequelize.TEXT + }); + }, + + down: (queryInterface, Sequelize) => { + return queryInterface.changeColumn("Customs", "content", { + allowNull: false, + type: Sequelize.STRING + }); + } +};