[update] added migration scripts for migrating news data to articles, geographic and category tagging, and default sharing templates

This commit is contained in:
2025-08-06 16:39:49 +02:00
parent 0aa8d9fa3a
commit c3b0c87bfa
12 changed files with 393 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
-- Insert default sharing templates
INSERT INTO share_templates (name, format, template_content, is_default)
VALUES ('Default Text', 'text', '📰 {title}
{summary}
🏷️ Tags: {tags}
🌍 Location: {geographic_tags}
🔗 Source: {url}
📅 Published: {published_at}
Shared via Owly News Summariser', 1),
('Markdown', 'markdown', '# {title}
{summary}
**Tags:** {tags}
**Location:** {geographic_tags}
**Source:** [{url}]({url})
**Published:** {published_at}
---
*Shared via Owly News Summariser*', 1),
('Simple Text', 'text', '{title}
{summary}
Source: {url}', 0),
('HTML Email', 'html', '<h2>{title}</h2>
<p>{summary}</p>
<p><strong>Tags:</strong> {tags}<br>
<strong>Location:</strong> {geographic_tags}<br>
<strong>Source:</strong> <a href="{url}">{url}</a><br>
<strong>Published:</strong> {published_at}</p>
<hr>
<small>Shared via Owly News Summariser</small>', 0);