version 5.2.1 + script verpeilt

This commit is contained in:
2026-07-09 12:39:51 +02:00
parent 116dca4137
commit b56bdb6321
2 changed files with 19 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ namespace BeWo
{
var baseVersion = new Version(BeWoApp.ShortVersion);
var stage = BeWoClientReleaseStage.Sandbox;
var stageVersion = new Version("5.2");
var stageVersion = new Version("5.2.1");
var feature = BeWoClientFeature.AI;
#if !DEBUG

View File

@@ -1,10 +1,20 @@
INSERT INTO `.executedscripts`
VALUES ('Changes_2026-06-18 AiModel default updaten', CURDATE());
VALUES ('Changes_2026-07-08 AiConversation Promptreferenz', CURDATE());
UPDATE `aiconfig` SET `SelectedModelOid` = (
SELECT Oid
FROM aimodel
WHERE ModelName = "gemma3_12b_max_context:latest"
AND ModelSource = 2
AND IsActive=1)
WHERE (`Oid` = '1');
ALTER TABLE `aiconversation`
ADD COLUMN `PromptReference` BIGINT NULL DEFAULT NULL AFTER `ApplicationUserOid`,
ADD COLUMN `RoutineReference` BIGINT NULL DEFAULT NULL AFTER `PromptReference`,
ADD INDEX `FK_AICONVERSATION_REFERENCE_PROMPT_OID_idx` (`PromptReference` ASC) VISIBLE,
ADD INDEX `FK_AICONVERSATION_REFERENCE_ROUTINE_OID_idx` (`RoutineReference` ASC) VISIBLE;
;
ALTER TABLE `aiconversation`
ADD CONSTRAINT `FK_AICONVERSATION_REFERENCE_PROMPT_OID`
FOREIGN KEY (`PromptReference`)
REFERENCES `aipromptbausteinprompt` (`Oid`)
ON DELETE CASCADE
ON UPDATE CASCADE,
ADD CONSTRAINT `FK_AICONVERSATION_REFERENCE_ROUTINE_OID`
FOREIGN KEY (`RoutineReference`)
REFERENCES `aipromptbausteinroutine` (`Oid`)
ON DELETE NO ACTION
ON UPDATE NO ACTION;