diff --git a/src/main/resources/neatlogic/resources/framework/changelog/2025-04-14/neatlogic_tenant.sql b/src/main/resources/neatlogic/resources/framework/changelog/2025-04-14/neatlogic_tenant.sql index f65fe49cd337087c4c7e730afeb4a8c060af2610..5325139c26fc3b2d08eea00add55915678c18c19 100644 --- a/src/main/resources/neatlogic/resources/framework/changelog/2025-04-14/neatlogic_tenant.sql +++ b/src/main/resources/neatlogic/resources/framework/changelog/2025-04-14/neatlogic_tenant.sql @@ -1,12 +1,19 @@ +ALTER TABLE `notify_config` + DROP PRIMARY KEY; ALTER TABLE `notify_config` ADD COLUMN `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键ID' FIRST, - ADD COLUMN `name` VARCHAR (250) NULL COMMENT '名称' AFTER `id`, - ADD COLUMN `is_active` TINYINT (1) DEFAULT 1 NOT NULL COMMENT '是否激活' AFTER `name`, - ADD COLUMN `is_default` TINYINT (1) DEFAULT 1 NOT NULL COMMENT '是否是默认配置' AFTER `is_active`, - DROP PRIMARY KEY, + ADD KEY (`id`); +ALTER TABLE `notify_config` ADD PRIMARY KEY (`id`); - ALTER TABLE `notify_config` - CHANGE `id` `id` BIGINT NOT NULL COMMENT '主键ID', - CHANGE `is_active` `is_active` TINYINT (1) DEFAULT 0 NOT NULL COMMENT '是否激活', + ADD COLUMN `name` VARCHAR (250) NULL COMMENT '名称' AFTER `id`; +ALTER TABLE `notify_config` + ADD COLUMN `is_active` TINYINT (1) DEFAULT 1 NOT NULL COMMENT '是否激活' AFTER `name`; +ALTER TABLE `notify_config` + ADD COLUMN `is_default` TINYINT (1) DEFAULT 1 NOT NULL COMMENT '是否是默认配置' AFTER `is_active`; +ALTER TABLE `notify_config` + CHANGE `id` `id` BIGINT NOT NULL COMMENT '主键ID'; +ALTER TABLE `notify_config` + CHANGE `is_active` `is_active` TINYINT (1) DEFAULT 0 NOT NULL COMMENT '是否激活'; +ALTER TABLE `notify_config` CHANGE `is_default` `is_default` TINYINT (1) DEFAULT 0 NOT NULL COMMENT '是否是默认配置'; \ No newline at end of file