History: Add details to drop history and split by type
that being 0 for drops and 1 for claims. Fixes #16
This commit is contained in:
26
migrations/20220921111418-add-type-to-dropHistory.js
Normal file
26
migrations/20220921111418-add-type-to-dropHistory.js
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
/**
|
||||
* Add altering commands here.
|
||||
*
|
||||
* Example:
|
||||
* await queryInterface.createTable('users', { id: Sequelize.INTEGER });
|
||||
*/
|
||||
await queryInterface.addColumn('DropHistories', 'type', {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: true
|
||||
});
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
/**
|
||||
* Add reverting commands here.
|
||||
*
|
||||
* Example:
|
||||
* await queryInterface.dropTable('users');
|
||||
*/
|
||||
await queryInterface.removeColumn('DropHistories', 'type');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user