The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Viewing files at commit 89b58109a0e6Commit detailsView latest

scripts/migrate-hosted.ts 14 lines · 432 B · typescript
1
import { neon } from '@neondatabase/serverless';
2
import {
3
  runHostedMigrations,
4
  verifyHostedMigrations,
5
} from '../packages/persistence/src/hosted-migrations.js';
6
7
const databaseUrl = process.env.DATABASE_URL;
8
if (!databaseUrl) throw new Error('DATABASE_URL is required');
9
10
const sql = neon(databaseUrl);
11
await runHostedMigrations(sql);
12
await verifyHostedMigrations(sql);
13
14
console.log('Hosted database migrations are current.');