fetch reservations, find and update changed reservations

This commit is contained in:
Bilal Catic
2019-06-27 05:38:45 +02:00
parent aedb09d1be
commit 7aab1e538e
7 changed files with 127 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.removeConstraint('bookingReservations', 'bookingReservations_pkey');
},
down: (queryInterface, Sequelize) => {
return queryInterface.addConstraint('bookingReservations', ['id'], {
name: 'bookingReservations_pkey',
type: 'PRIMARY KEY',
});
}
};

View File

@@ -0,0 +1,14 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addConstraint('bookingReservations', ['reservationId'], {
name: 'bookingReservations_pkey',
type: 'PRIMARY KEY',
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.removeConstraint('bookingReservations', 'bookingReservations_pkey');
}
};