24 lines
663 B
JavaScript
24 lines
663 B
JavaScript
'use strict';
|
||
|
||
/**
|
||
* cameras 增加 channel_name(设备上的通道名,来自 ISAPI)
|
||
*
|
||
* 与 name 的区别:
|
||
* name = 业务别名(用户可改,重拉通道不覆盖)
|
||
* channel_name = 设备上的原始通道名(每次拉取会刷新)
|
||
*/
|
||
module.exports = {
|
||
async up(queryInterface, Sequelize) {
|
||
await queryInterface.addColumn('cameras', 'channel_name', {
|
||
type: Sequelize.STRING(64),
|
||
allowNull: true,
|
||
after: 'name',
|
||
comment: '设备通道名(ISAPI,拉取通道时刷新)',
|
||
});
|
||
},
|
||
|
||
async down(queryInterface) {
|
||
await queryInterface.removeColumn('cameras', 'channel_name');
|
||
},
|
||
};
|