refactor: use module name as the snapshot name (#11802)

Fixes: FRMW-2930

This PR updates the MikroORM config to use the module name as the snapshot name when generating migration files. Otherwise, MikroORM defaults to the database name and every time you update the database name, it will create a new snapshot. 

Also, we migrate existing snapshot files to be same the new file name to avoid breaking changes.
This commit is contained in:
Harminder Virk authored and GitHub committed 2025-03-12 07:02:19 +00:00
1 parent 267af9f3f6
commit 375c4a5ab1
7 files changed
+94 -3

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
feat: use module name as the snapshot name