Database Setup
The platform uses Cloudflare D1 (SQLite) to store metadata.
1. Provisioning the Database
Section titled “1. Provisioning the Database”Create a new D1 database via the Cloudflare dashboard or Wrangler:
npx wrangler d1 create expo-updater-dbCopy the database_id and update it in your apps/update-server/wrangler.jsonc file.
2. Running Migrations
Section titled “2. Running Migrations”The database schema is managed via Drizzle. Run the migrations to initialize your tables:
# From the root directorypnpm run db:migrate:deployThis will create the analytics, dau, branches, channels, and updates tables.