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