change title, short and long description columns type to Text
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
up: (queryInterface, Sequelize) => {
|
||||
return Promise.all([
|
||||
queryInterface.changeColumn("RealEstates", "shortDescription", {
|
||||
type: Sequelize.TEXT
|
||||
}),
|
||||
queryInterface.changeColumn("RealEstates", "longDescription", {
|
||||
type: Sequelize.TEXT
|
||||
}),
|
||||
queryInterface.changeColumn("RealEstates", "title", {
|
||||
type: Sequelize.TEXT
|
||||
})
|
||||
]);
|
||||
},
|
||||
|
||||
down: (queryInterface, Sequelize) => {
|
||||
return Promise.all([]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user