inital commit
This commit is contained in:
15
migrations/20240614212845-add-date-to-worships.js
Normal file
15
migrations/20240614212845-add-date-to-worships.js
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn('worships', 'date', {
|
||||
type: Sequelize.DATE,
|
||||
allowNull: false,
|
||||
defaultValue: '2024-01-01'
|
||||
});
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn('worships', 'date');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user