Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix: preserve seeded template line breaks

tianma-if80aa95cd6a7b
diff --git a/migrations/0018_fix_seed_template_markdown.sql b/migrations/0018_fix_seed_template_markdown.sql
new file mode 100644
index 00000000..e81c81cf
--- /dev/null
+++ b/migrations/0018_fix_seed_template_markdown.sql
@@ -0,0 +1,11 @@
+PRAGMA foreign_keys = ON;
+
+-- SQLite string literals do not interpret backslash-n as a line break.
+UPDATE memo_templates
+SET content_markdown = '## 本周进展' || char(10) || char(10) || '- ' || char(10) || char(10) ||
+ '## 关键成果' || char(10) || char(10) || '- ' || char(10) || char(10) ||
+ '## 风险与阻塞' || char(10) || char(10) || '- ' || char(10) || char(10) ||
+ '## 下周计划' || char(10) || char(10) || '- [ ] ' || char(10) || char(10) ||
+ '## 需要协助' || char(10) || char(10) || '- '
+WHERE name = '项目周报模板'
+ AND description = '每周同步项目进展、风险与下一步计划';