ALTER TABLE `tb_plugin`
    ADD COLUMN `workflow_id` bigint NULL DEFAULT NULL COMMENT '绑定工作流ID' AFTER `type`;

UPDATE `tb_plugin`
SET `type` = 1
WHERE `type` IS NULL;

CREATE INDEX `idx_tb_plugin_workflow_id` ON `tb_plugin` (`workflow_id`);
