* [bug #66036] fix model field in ai table no upgrade as expected.

This commit is contained in:
sunhao
2025-10-14 14:58:56 +08:00
parent 41b939ac5e
commit 0bf90d73fd
+3 -3
View File
@@ -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',