15 lines
353 B
JavaScript
15 lines
353 B
JavaScript
'use strict';
|
|
/** @type {import('sequelize-cli').Migration} */
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn('penyakit', 'foto', {
|
|
type: Sequelize.STRING,
|
|
allowNull: true
|
|
});
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.removeColumn('penyakit', 'foto');
|
|
}
|
|
};
|