Skip to content

Prepare migration to Mikro-ORM v6 #9

@SamJakob

Description

@SamJakob

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.

Metadata

Metadata

Assignees

Labels

p2High Priority. To be addressed first during next project slot.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions