mikro-orm-pg-migration-generator
JSON →A MikroORM migration generator extension that automatically creates PostgreSQL triggers and functions to manage `updated_at` column updates, compensating for PostgreSQL's lack of native ON UPDATE CURRENT_TIMESTAMP support. Version 0.1.6 integrates with `@mikro-orm/migrations` ^6.5.6 and supports PostgreSQL 13-17. Unlike `onUpdate` in MikroORM entities, this ensures `updated_at` is updated even when using query builders or raw SQL. It generates full up/down migration scripts with customizable column names, types, function/trigger naming, and SQL. Designed for projects that need reliable `updated_at` behavior outside ORM-managed code.