Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare migration to Mikro-ORM v6 #9

Open
1 of 6 tasks
SamJakob opened this issue Nov 23, 2023 · 0 comments
Open
1 of 6 tasks

Prepare migration to Mikro-ORM v6 #9

SamJakob opened this issue Nov 23, 2023 · 0 comments
Assignees
Labels
p2 High Priority. To be addressed first during next project slot.

Comments

@SamJakob
Copy link
Member

See: https://mikro-orm.io/docs/next/upgrading-v5-to-v6

Main issues expected to be:

  • The connect parameter is no longer accepted in the init method. (This was never used and connecting to the database didn't behave as necessarily expected in Cinnamon due to an oversight, this is fixed in the upcoming v0.2.0).
  • The type option being removed in favor of driver exports.
  • The driver package is now the preferred way to import everything. (This might be worth abstracting in Cinnamon to maintain some level of database agnosticism).
  • ref() vs wrap() (not necessarily for framework code, but for documentation)
  • Similarly for require() calls for Migrator, EntityGenerator and Seeder
  • Greater reliance on passing initialization options to Mikro-ORM.init. Will need to re-work or double check options for init and for config.
@SamJakob SamJakob added the p2 High Priority. To be addressed first during next project slot. label Nov 23, 2023
@SamJakob SamJakob self-assigned this Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 High Priority. To be addressed first during next project slot.
Projects
None yet
Development

No branches or pull requests

1 participant