SmartPRO Docs ยท Internal ๐Ÿ”’ โ† Back to SmartPRO

How it works

See the Migration Apply SOP for the full workflow. In brief:

Pending migrations (demo booking feature)

These migrations must be applied before the demo booking pipeline goes live:

Migration What it adds
0162 demo_bookings table
0163 follow_up_sent_at
0164 meeting_url, recording_url, disposition, notes
0165 end_time, duration_minutes
0166 RSVP + lifecycle columns (confirmation_status, attended_at, etc.)

Apply with:

DATABASE_URL="..." pnpm db:migrate:dry   # preview
DATABASE_URL="..." pnpm db:migrate       # apply

See the Migration Apply SOP for verification and rollback.

Drift guards

Journal

drizzle/meta/_journal.json is the authoritative list of what's been applied. The migration runner checks this before applying each file โ€” it's idempotent and safe to re-run.