Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your AI SDK chat table breaks every six months

Open lib/db/schema.ts in Vercel's ai-chatbot template and look at line 42: export const message = pgTable ( " Message_v2 " , { The _v2 is a scar. When ai 5 changed the message shape, migrating the existing table in place was harder than adding a new one beside it, so the template added Message_v2 and Vote_v2 , backfilled, and eventually deleted the originals. The old tables are gone now. The…

The AI SDK chat table breaks every six months. In the open lib/db/schema.ts of Vercel's ai-chatbot template, the Message_v2 table was introduced when the message shape changed during an update. However, migrating the existing table in place proved challenging, leading to the addition of Message_v2 and Vote_v2 tables, with the originals eventually being deleted. The old tables now carry their version numbers permanently in the schema for every new project that forks from the template.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to Set Up a Google Play Closed Testing Campaign

When I finished building my first Android app, I thought pushing my code to production was going to be as simple as hitting a release button.

  • Create and name closed testing track in Google Play Console
  • Upload signed Android App Bundle for review
  • Recruit 12 testers for 14 consecutive days

Decoupled Security: Securing the Auth Flow Without Touching the Implementation

Integrating additional security measures into existing authentication systems often introduces operational risks. With our new Caddy plugin, we shift this layer into the infrastructure.

  • Caddy's new plugin secures auth flow without backend changes
  • Infrastructure-based approach decouples security QA layer from application
  • Load test with 40,000 concurrent requests confirms system stability

More from Monday 14 September →