[update] added migration scripts for migrating news
data to articles
, geographic and category tagging, and default sharing templates
This commit is contained in:
@@ -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);
|
Reference in New Issue
Block a user