Filter data by geolocation now sets hasLocation boolean instead of excluding results

This commit is contained in:
Nedim Uka
2019-07-10 15:21:46 +02:00
parent 5829de64e0
commit 33f9e37d93
5 changed files with 64 additions and 20 deletions

View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn(
'MarketAlerts',
'hasLocation',
{
type: Sequelize.BOOLEAN
}
);
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn(
'MarketAlerts',
'hasLocation'
);
}
};