MuseMVP

MuseMVP Base: Next.js for Node and Cloudflare. MuseMVP Flare: an AI SaaS template that runs entirely on Cloudflare. Authentication, billing and administration included.

Product
  • Home
  • Pricing
  • Templates
Resources
  • Docs
  • Blog
  • Changelog
Legal
  • Privacy
  • Terms
  • Community
Open-Launch Top 1 Daily WinnerOpen-Launch Top 1 Daily WinnerVerified DR - Verified Domain Rating for musemvp.comVerified DR - Verified Domain Rating for musemvp.comMuseMVP - Featured on Startup FameMuseMVP - Featured on Startup FameFazier badgeFazier badgeLiftOff award badgeLiftOff award badge

© 2026 MuseMVP. All rights reserved.

MuseMVP
  • Pricing
  • Docs
  • Blog
  • Changelog
Buy MuseMVP Base
MuseMVP Docs
MuseMVP Docs
OverviewTech StackQuick Start
Project Structure
Database ConfigurationDatabase Migrations
EmailObject Storage
Internationalization
SEOAnalytics
Database

Database Migrations

Review and apply D1 migrations with backups and release checks.

D1 / SQLite uses its own reviewed migration history.

SchemaConfigurationMigrations
packages/db/src/schema-d1.tspackages/db/drizzle.config.d1.tspackages/db/migrations-d1/

D1

pnpm db:generate:d1
pnpm db:migrate:d1:local
pnpm db:seed:d1
pnpm db:migrate:d1:status
pnpm db:migrate:d1:remote
pnpm db:migrate:d1:status --strict

The generator maintains SQL hashes in packages/db/migrations-d1/manifest.json and refuses changes to recorded migrations. Remote migration exports a backup, tests migration and foreign keys on a local clone, then applies remotely. Align the demo database name in scripts/d1-migrations.ts with your wrangler.jsonc; scripts/seed-d1.ts uses the DB binding rather than a hardcoded database name. See Cloudflare deployment.

pnpm cf:deploy checks remote history against local files before release and stops on pending migrations. Do not treat pnpm cf:upload as a substitute for that gate.

Existing Databases

The latest version resets the baseline. Do not apply the new 0000_initial.sql as an upgrade migration to an existing production database. Legacy databases may have old journals and settings tables: back up, compare schema/history on a clone, and design incremental migrations for your derivative. Current root scripts have neither a legacy settings export command nor drizzle:* aliases.

Write failing tests first. Append migrations instead of rewriting applied SQL or faking journals. Test the selected schema, SQL queries, defaults, indexes, and failure recovery before release.

Database Configuration

Start with a development database, inspect your data, and prepare a separate production database.

API Architecture

An overview of MuseMVP's API: why Hono, how it integrates with Next.js, and availability/observability entry points.

On this page

D1Existing Databases

One payment. Tax included.

MuseMVP Base

Next.js for Node and for Cloudflare, with auth, payments and admin.

$69

Buy MuseMVP Base