* [misc] fix sql.

This commit is contained in:
liyang
2025-10-11 16:36:45 +08:00
parent ec10f31c4c
commit ad256e362f
+7 -7
View File
@@ -1,7 +1,7 @@
ALTER TABLE `zt_doc` ADD `cycle` char(10) COLLATE 'utf8mb4_general_ci' NOT NULL DEFAULT '' AFTER `chapterType`;
ALTER TABLE `zt_doc` ADD `objects` text COLLATE 'utf8mb4_general_ci' NULL AFTER `templateDesc`;
ALTER TABLE `zt_doc` ADD `cycleConfig` text COLLATE 'utf8mb4_general_ci' NULL AFTER `cycle`;
ALTER TABLE `zt_doc` ADD `weeklyDate` char(8) COLLATE 'utf8mb4_general_ci' NOT NULL DEFAULT '' AFTER `collects`;
ALTER TABLE `zt_doc` ADD `cycle` char(10) NOT NULL DEFAULT '' AFTER `chapterType`;
ALTER TABLE `zt_doc` ADD `objects` text NULL AFTER `templateDesc`;
ALTER TABLE `zt_doc` ADD `cycleConfig` text NULL AFTER `cycle`;
ALTER TABLE `zt_doc` ADD `weeklyDate` char(8) NOT NULL DEFAULT '' AFTER `collects`;
CREATE INDEX `templateType` ON `zt_doc`(`templateType`);
@@ -13,9 +13,9 @@ UPDATE `zt_ai_miniprogram` SET `model` = 0 WHERE `model` IS NULL;
UPDATE `zt_ai_prompt` SET `model` = 0 WHERE `model` IS NULL;
UPDATE `zt_ai_promptrole` SET `model` = 0 WHERE `model` IS NULL;
ALTER TABLE `zt_ai_miniprogram` MODIFY `model` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL DEFAULT '';
ALTER TABLE `zt_ai_prompt` MODIFY `model` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL DEFAULT '';
ALTER TABLE `zt_ai_promptrole` MODIFY `model` varchar(255) COLLATE 'utf8mb4_general_ci' NOT NULL DEFAULT '';
ALTER TABLE `zt_ai_miniprogram` MODIFY `model` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `zt_ai_prompt` MODIFY `model` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `zt_ai_promptrole` MODIFY `model` varchar(255) NOT NULL DEFAULT '';
UPDATE `zt_ai_miniprogram` SET `model` = '' WHERE `model` = '0';
UPDATE `zt_ai_prompt` SET `model` = '' WHERE `model` = '0';