From 0bf90d73fda9206b033f79eb2613d27bf74c1d6e Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 14 Oct 2025 14:58:56 +0800 Subject: [PATCH] * [bug #66036] fix model field in ai table no upgrade as expected. --- db/standard/zentao21.7.6.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/standard/zentao21.7.6.sql b/db/standard/zentao21.7.6.sql index 5b7bd598f8..7dda2b9a45 100644 --- a/db/standard/zentao21.7.6.sql +++ b/db/standard/zentao21.7.6.sql @@ -108,7 +108,7 @@ CREATE TABLE `zt_ai_miniprogram` ( `name` varchar(30) NOT NULL, `category` varchar(30) NOT NULL, `desc` text DEFAULT NULL, - `model` mediumint(8) unsigned DEFAULT NULL, + `model` varchar(255) NOT NULL DEFAULT '', `icon` varchar(30) NOT NULL DEFAULT 'writinghand-7', `createdBy` varchar(30) NOT NULL, `createdDate` datetime NOT NULL, @@ -159,7 +159,7 @@ CREATE TABLE `zt_ai_prompt` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `desc` text DEFAULT NULL, - `model` mediumint(8) unsigned DEFAULT NULL, + `model` varchar(255) NOT NULL DEFAULT '', `module` varchar(30) DEFAULT NULL, `source` text DEFAULT NULL, `targetForm` varchar(30) DEFAULT NULL, @@ -179,7 +179,7 @@ CREATE TABLE `zt_ai_promptrole` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) DEFAULT NULL, `desc` text DEFAULT NULL, - `model` mediumint(8) unsigned DEFAULT NULL, + `model` varchar(255) NOT NULL DEFAULT '', `role` text DEFAULT NULL, `characterization` text DEFAULT NULL, `deleted` enum('0','1') NOT NULL DEFAULT '0',