Update blog post content to include embedded videos and correct formatting
Add an UPDATE migration to server/seed.ts to ensure existing articles are correctly updated with new content, including embedded Bunny.net videos and Facebook reels, while also removing outdated entries. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 23852c00-4779-460a-9e0c-d09fee4b6c92 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: aec0f131-6ce2-45df-88ba-8149b4f0a088 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/23852c00-4779-460a-9e0c-d09fee4b6c92/nJrxImn Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
d2b7d2ff4e
commit
00de744f46
@ -291,4 +291,22 @@ export async function seedDatabase() {
|
|||||||
published_at = '2026-03-06T12:00:00.000Z'
|
published_at = '2026-03-06T12:00:00.000Z'
|
||||||
WHERE slug = 'john-prisco-die-geschichte-des-liedes' OR slug = 'john-prisco-die-geschichte-eines-musikers'
|
WHERE slug = 'john-prisco-die-geschichte-des-liedes' OR slug = 'john-prisco-die-geschichte-eines-musikers'
|
||||||
`);
|
`);
|
||||||
|
|
||||||
|
const stadl12Seed = seedArticles.find(a => a.slug === 'folx-stadl-sendung-12-musik-humor-und-beste-schlagerunterhaltung');
|
||||||
|
if (stadl12Seed) {
|
||||||
|
await db.execute(sql`
|
||||||
|
UPDATE articles SET
|
||||||
|
title = ${stadl12Seed.title},
|
||||||
|
excerpt = ${stadl12Seed.excerpt},
|
||||||
|
content = ${stadl12Seed.content},
|
||||||
|
cover_image = ${stadl12Seed.coverImage},
|
||||||
|
category = ${stadl12Seed.category},
|
||||||
|
featured = ${stadl12Seed.featured}
|
||||||
|
WHERE slug = 'folx-stadl-sendung-12-musik-humor-und-beste-schlagerunterhaltung'
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
|
||||||
|
await db.execute(sql`
|
||||||
|
DELETE FROM articles WHERE slug = 'folx-stadl-sendung-12'
|
||||||
|
`);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user