11 lines
430 B
MySQL
11 lines
430 B
MySQL
|
|
-- Migration 069: ai_prompts default_template fuer Ruecksetzen & Transparenz
|
||
|
|
-- Setzt fuer bestehende System-Prompt-Zeilen default_template aus dem aktuellen template,
|
||
|
|
-- sofern noch kein Referenzinhalt gespeichert war (Migration 067 hatte NULL fuer exercise_*).
|
||
|
|
|
||
|
|
UPDATE ai_prompts
|
||
|
|
SET default_template = template,
|
||
|
|
updated_at = NOW()
|
||
|
|
WHERE default_template IS NULL
|
||
|
|
AND template IS NOT NULL
|
||
|
|
AND LENGTH(TRIM(template)) > 0;
|