MuseMVP

MuseMVP Base : Next.js pour Node et Cloudflare. MuseMVP Flare : un template SaaS IA qui tourne entièrement sur Cloudflare. Authentification, facturation et administration incluses.

Produit
  • Accueil
  • Tarifs
  • Modèles
Ressources
  • Docs
  • Blog
  • Journal
Mentions légales
  • Confidentialité
  • Conditions
  • Communauté
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. Tous droits réservés.

MuseMVP
  • Tarifs
  • Docs
  • Blog
  • Journal
Acheter MuseMVP Base
Docs MuseMVP
Docs MuseMVP
OverviewTech StackQuick Start
Project Structure
Database ConfigurationDatabase Migrations
EmailObject Storage
Internationalization
SEOAnalytics
Database

Cette page n'est pas encore disponible dans la langue sélectionnée. Vous consultez la version originale en English.

Voir l'original (English)

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 the migration and foreign keys on a local clone, then applies the migration remotely. The migration script reads the database name from the DB binding in apps/web-cloudflare/wrangler.jsonc. Set the production database name and ID there.

Before a Workers Builds release that needs a new migration, apply it and run pnpm db:migrate:d1:status --strict before pushing or merging to the production branch. The GitHub Actions workflow and direct Linux releases with pnpm cf:deploy both run this check and stop when migrations are pending. Cloudflare deployment

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.

Sur cette page

D1Existing Databases

Un paiement. Taxes comprises.

MuseMVP Base

Next.js pour Node et pour Cloudflare, avec auth, paiements et admin.

$69

Acheter MuseMVP Base