'use strict'; module.exports = { /** * 移除打印电脑表的 remote_play_url 字段(未被使用)。 * @param {import('sequelize').QueryInterface} queryInterface 查询接口 * @param {import('sequelize')} Sequelize Sequelize 实例 * @return {Promise} 无返回值 */ async up(queryInterface, Sequelize) { await queryInterface.removeColumn('wms_print_computer', 'remote_play_url'); }, /** * 回滚:恢复 remote_play_url 字段。 * @param {import('sequelize').QueryInterface} queryInterface 查询接口 * @param {import('sequelize')} Sequelize Sequelize 实例 * @return {Promise} 无返回值 */ async down(queryInterface, Sequelize) { await queryInterface.addColumn('wms_print_computer', 'remote_play_url', { type: Sequelize.STRING(500), allowNull: true, defaultValue: null, comment: '远程播放地址', }); }, };