Миграция контроллеров с MongoDB на PostgreSQL
engineering
mx-pg-controller-migration is a Claude Code skill that verifies and ports mx-core controllers (Post, Note, Page, Comment, Category, and others) after a MongoDB-to-PostgreSQL cutover, ensuring the full server–SDK–dashboard chain stays consistent. It covers three layers: server modules in `apps/core/src/modules/`, type definitions in `packages/api-client/`, and the `admin-vue3` dashboard — with no legacy back-compat shims, so all field renames propagate end to end. The built-in workflow includes snapshotting the migration delta via `git show`/`git log`, auditing every endpoint for joined-data completeness (`category`, `related`, `topic` via `attach*` batch helpers), a field rename map (`created → createdAt`, `count.read → readCount`, `pin → pinAt`), and syncing SDK model types and `sortBy` literal unions. Useful for teams hitting missing fields, type mismatches, or silent data loss after a PG migration.
- #postgresql
- #mongodb-migration
- #drizzle-orm
- #nestjs
- #data-migration