Skip to content

Instantly share code, notes, and snippets.

View vkartaviy's full-sized avatar
🎮
Hasta la vista, baby

Volodymyr Kartavyi vkartaviy

🎮
Hasta la vista, baby
View GitHub Profile
@vkartaviy
vkartaviy / README.md
Created July 10, 2026 21:43
Minimal reproduction: MikroORM 7.1.5 metadata cache ID collision

MikroORM metadata cache ID collision repro

This is a database-free reproduction for MikroORM 7.1.5. It starts three independent Node.js processes against one metadata cache directory:

  1. Discover and cache Alpha only.
  2. Discover and cache Beta only.
  3. Discover both entities and build the target schema from the two cache files.

Each seeding process starts the process-local EntityMetadata counter at zero,

@vkartaviy
vkartaviy / README.md
Created July 29, 2026 16:50
MikroORM 7.1.8: migration:up rewrites snapshot with migration-owned external trigger

MikroORM external-trigger snapshot repro

Prerequisite: a disposable PostgreSQL server. Connection defaults are 127.0.0.1:5432, user/password postgres/postgres; override them with DB_HOST, DB_PORT, DB_USER, and DB_PASSWORD.

pnpm install
pnpm repro
@vkartaviy
vkartaviy / README.md
Created July 29, 2026 23:07
MikroORM 7.1.8 PostgreSQL trigger statement-splitting reproduction

MikroORM PostgreSQL trigger statement-splitting reproduction

This uses only public EntitySchema, migrator, and schema-generator APIs.

docker run --rm --name mikro-trigger-repro \
  -e POSTGRES_PASSWORD=postgres \
  -e POSTGRES_DB=trigger_repro \
  -p 127.0.0.1:54329:5432 \
 postgres:17-alpine