You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When specifying defaultRaw: 'CURRENT_TIMESTAMP(3)' on a Date property on an entity, the generated migration will contain default current_timestamp(0)
To Reproduce
Steps to reproduce the behavior:
Use the mysql type in mikro-orm.config.ts
Create an entity that contains a Date property like this:
Right, the main issue here is the inference of the length for datetime columns were not implemented, we just used the platform default. That's why providing length explicitly helps.
Describe the bug
When specifying
defaultRaw: 'CURRENT_TIMESTAMP(3)'
on a Date property on an entity, the generated migration will containdefault current_timestamp(0)
To Reproduce
Steps to reproduce the behavior:
mysql
type in mikro-orm.config.tsnpx mikro-orm migration:create
Expected behavior
I would expect the migration to contain
default current_timestamp(3)
as specified in the entitydefaultRaw
.Versions
The text was updated successfully, but these errors were encountered: