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
I have found a really confusing thing in migrations with SqlServerGrammar.
It is about datetime column. As we can see here when precision is set migration will create column with datetime2 type but in other case it will be datetime type.
Also I have found this PR where trouble was fixed. As we can see in both cases column will be with datetime2 type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have found a really confusing thing in migrations with
SqlServerGrammar
.It is about
datetime
column. As we can see here when precision is set migration will create column withdatetime2
type but in other case it will bedatetime
type.Also I have found this PR where trouble was fixed. As we can see in both cases column will be with
datetime2
type.Is it a bug or expected behavior?
Beta Was this translation helpful? Give feedback.
All reactions