fetch reservations, find and update changed reservations
This commit is contained in:
@@ -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',
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user