Fix DateTime -> Time
update version before save
Fix migration to add values for existing columns
Fix logic of tests