Files
geo/server/migrations/20260401162000_optimize_generation_prompts_cn.down.sql
T
root b31d8d0096 feat(migrations): Harden task audit tracking and optimize article templates
- Added migration to harden task audit tracking by modifying audit_logs and related tables.
- Introduced operator_id to several tables for better tracking of actions.
- Updated article_templates with new prompt templates for various article types, enhancing content generation.
- Created prompt_rules and schedule_tasks tables to manage content generation rules and scheduling.
- Added foreign key constraints to articles for better data integrity.
2026-04-02 00:31:28 +08:00

37 lines
1.7 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
UPDATE article_templates
SET prompt_template = $$ Markdown
使$$,
updated_at = NOW()
WHERE scope = 'platform'
AND template_key = 'top_x_article'
AND deleted_at IS NULL;
UPDATE article_templates
SET prompt_template = $$ Markdown
使
广
review_intro_hook 使$$,
updated_at = NOW()
WHERE scope = 'platform'
AND template_key = 'product_review'
AND deleted_at IS NULL;
UPDATE article_templates
SET prompt_template = $$ Markdown
使$$,
updated_at = NOW()
WHERE scope = 'platform'
AND template_key = 'research_report'
AND deleted_at IS NULL;
UPDATE article_templates
SET prompt_template = $$ Markdown
广$$,
updated_at = NOW()
WHERE scope = 'platform'
AND template_key = 'brand_search_expansion'
AND deleted_at IS NULL;