29 lines
949 B
JavaScript
29 lines
949 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
/**
|
|
* 恢复 wms_print_computer 的 recording_directory 字段(录制目录路径)。
|
|
* @param {import('sequelize').QueryInterface} queryInterface 查询接口
|
|
* @param {import('sequelize')} Sequelize Sequelize 实例
|
|
* @return {Promise<void>} 无返回值
|
|
*/
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.addColumn('wms_print_computer', 'recording_directory', {
|
|
type: Sequelize.STRING(500),
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: '录制目录路径',
|
|
});
|
|
},
|
|
|
|
/**
|
|
* 回滚:移除 recording_directory 字段。
|
|
* @param {import('sequelize').QueryInterface} queryInterface 查询接口
|
|
* @param {import('sequelize')} Sequelize Sequelize 实例
|
|
* @return {Promise<void>} 无返回值
|
|
*/
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.removeColumn('wms_print_computer', 'recording_directory');
|
|
},
|
|
};
|