Skip to content

Fix local D1 demo fixture setup - #39

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
agent/repair-local-d1-demo
Jul 30, 2026
Merged

sarthakagrawal927 merged 1 commit into
mainfrom
agent/repair-local-d1-demo

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

Summary

  • add a local-only Wrangler config pinned to the current D1 migration directory
  • create the missing Better Auth base tables and remove the invalid agentAuthCodes.userId index
  • add a guarded, repeatable local migration + demo seed command
  • align current setup and data documentation with the D1-only runtime

Validation

  • pnpm exec vitest run tests/local-d1-setup.unit.test.mjs
  • pnpm docs:check (0 errors; 8 pre-existing archive warnings)
  • pnpm db:setup:local -- --persist-to /tmp/karte-d1-validation.aaAITa (run twice)
  • local query: 11 migrations, 4 demo profiles, dmMode present
  • git diff --check

No remote D1 or production configuration was changed.

Closes #36

@sarthakagrawal927
sarthakagrawal927 merged commit cf02e99 into main Jul 30, 2026
2 of 3 checks passed
@sarthakagrawal927
sarthakagrawal927 deleted the agent/repair-local-d1-demo branch July 30, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repair local D1 demo fixture schema drift

1 participant