From 00de744f467ac36864827e64727a47b8aef3818a Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 6 Mar 2026 16:51:47 +0000 Subject: [PATCH] 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 --- server/seed.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server/seed.ts b/server/seed.ts index 51d3921..9d479be 100644 --- a/server/seed.ts +++ b/server/seed.ts @@ -291,4 +291,22 @@ export async function seedDatabase() { published_at = '2026-03-06T12:00:00.000Z' 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' + `); }