25 lines
666 B
JavaScript
25 lines
666 B
JavaScript
'use strict';
|
||
|
||
/**
|
||
* wms_wechat_app 增加「当前上传的代码模板ID」字段 template_id。
|
||
*
|
||
* 用于记录第三方平台代开发小程序最近一次 wxa/commit 上传代码使用的模板 ID。
|
||
*/
|
||
|
||
const TABLE_NAME = 'wms_wechat_app';
|
||
|
||
module.exports = {
|
||
async up(queryInterface, Sequelize) {
|
||
await queryInterface.addColumn(TABLE_NAME, 'template_id', {
|
||
type: Sequelize.BIGINT(20).UNSIGNED,
|
||
allowNull: true,
|
||
defaultValue: null,
|
||
comment: '当前上传的代码模板ID(wxa/commit 成功后记录)',
|
||
});
|
||
},
|
||
|
||
async down(queryInterface) {
|
||
await queryInterface.removeColumn(TABLE_NAME, 'template_id');
|
||
},
|
||
};
|