add geolocalization
This commit is contained in:
25
server/migrations/20220706090946-place-details.js
Normal file
25
server/migrations/20220706090946-place-details.js
Normal file
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
/**
|
||||
* Add altering commands here.
|
||||
*
|
||||
* Example:
|
||||
* await queryInterface.createTable('users', { id: Sequelize.INTEGER });
|
||||
*/
|
||||
return queryInterface.addColumn('places', 'details', { type: Sequelize.JSON })
|
||||
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
/**
|
||||
* Add reverting commands here.
|
||||
*
|
||||
* Example:
|
||||
* await queryInterface.dropTable('users');
|
||||
*/
|
||||
return queryInterface.removeColumn('places', 'details')
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user