Files
old-web/app/migrations/20190523151420-add-bounding-box-column.js

22 lines
523 B
JavaScript
Raw Normal View History

2019-09-05 11:14:54 +02:00
"use strict";
2019-05-17 10:49:13 +02:00
module.exports = {
up: (queryInterface, Sequelize) => {
2019-09-05 11:14:54 +02:00
return queryInterface.sequelize
.query(
'ALTER TABLE "RealEstateRequests" ADD COLUMN bounding_box geometry(Polygon);'
)
.then(([results, metadata]) => {
/// No result
});
2019-05-17 10:49:13 +02:00
},
down: (queryInterface, Sequelize) => {
2019-09-05 11:14:54 +02:00
return queryInterface.sequelize
.query('ALTER TABLE "RealEstateRequests" DROP COLUMN bounding_box')
.then(([results, metadata]) => {
/// No result
});
2019-05-17 10:49:13 +02:00
}
2019-09-05 11:14:54 +02:00
};