Description
Environment
- EmDash version: 0.10.x (latest)
- Deployment: Cloudflare Workers + D1
Steps to reproduce
- Create a new EmDash project with
npm create emdash@latest
- Deploy to Cloudflare Workers with a fresh D1 database
- Visit /_emdash/admin/setup
Error
Migration failed: D1_ERROR: table "_emdash_api_tokens" already exists
at offset 13 (migration: 016_api_tokens)
Expected
Setup wizard should initialize successfully on a fresh D1 database.
Notes
The table exists but the migration record is missing from _emdash_migrations,
causing the migration to re-run and fail on every request.
Steps to reproduce
- Create a new EmDash project with
npm create emdash@latest
- Select Cloudflare Workers as deployment target
- Run
npm install emdash@latest to fix version conflict from scaffold
- Run
npm run build && wrangler deploy with a fresh D1 database
- Visit /_emdash/admin/setup
Environment
- Create a new EmDash project with
npm create emdash@latest
- Select Cloudflare Workers as deployment target
- Run
npm install emdash@latest to fix version conflict from scaffold
- Run
npm run build && wrangler deploy with a fresh D1 database
- Visit /_emdash/admin/setup
Logs / error output
Description
Environment
Steps to reproduce
npm create emdash@latestError
Migration failed: D1_ERROR: table "_emdash_api_tokens" already exists
at offset 13 (migration: 016_api_tokens)
Expected
Setup wizard should initialize successfully on a fresh D1 database.
Notes
The table exists but the migration record is missing from _emdash_migrations,
causing the migration to re-run and fail on every request.
Steps to reproduce
npm create emdash@latestnpm install emdash@latestto fix version conflict from scaffoldnpm run build && wrangler deploywith a fresh D1 databaseEnvironment
npm create emdash@latestnpm install emdash@latestto fix version conflict from scaffoldnpm run build && wrangler deploywith a fresh D1 databaseLogs / error output