Skip to content

Migrate from Prisma to Kysely#134

Merged
gausie merged 3 commits into
mainfrom
worktree-peaceful-crafting-eagle
May 10, 2026
Merged

Migrate from Prisma to Kysely#134
gausie merged 3 commits into
mainfrom
worktree-peaceful-crafting-eagle

Conversation

@gausie

@gausie gausie commented May 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace Prisma with Kysely + pg for database access — no code-generation step, explicit SQL-style query builder
  • Add kysely-ctl for migration management; run yarn migrate to apply
  • Initial migration (001_initial) is idempotent (IF NOT EXISTS / IF EXISTS) so it's safe on the existing production DB — also cleans up the abandoned WikiLinks/ThingType artifacts and drops _prisma_migrations

Test plan

  • yarn typecheck passes
  • yarn migrate runs against the DB and completes successfully
  • Running yarn migrate a second time is a no-op (idempotent)
  • App loads player data correctly via ?u=<playerId>
  • Webhook endpoints (/webhooks/update, /webhooks/wipe) respond correctly

@Rinn

Rinn commented May 10, 2026

Copy link
Copy Markdown
Member

this is me
image

@gausie

gausie commented May 10, 2026 via email

Copy link
Copy Markdown
Contributor Author

@gausie
gausie merged commit c8ceb74 into main May 10, 2026
1 check passed
@Rinn
Rinn deleted the worktree-peaceful-crafting-eagle branch May 12, 2026 11:51
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.

2 participants