File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,8 @@ impl<'until_build, 'post_build> CreateColumn<'post_build>
435
435
DbType :: Double => write ! ( s, "double precision " ) . unwrap ( ) ,
436
436
DbType :: Boolean => write ! ( s, "boolean " ) . unwrap ( ) ,
437
437
DbType :: Date => write ! ( s, "date " ) . unwrap ( ) ,
438
- DbType :: DateTime | DbType :: Timestamp => write ! ( s, "timestamp " ) . unwrap ( ) ,
438
+ DbType :: DateTime => write ! ( s, "timestamptz" ) . unwrap ( ) ,
439
+ DbType :: Timestamp => write ! ( s, "timestamp " ) . unwrap ( ) ,
439
440
DbType :: Time => write ! ( s, "time " ) . unwrap ( ) ,
440
441
} ;
441
442
@@ -456,7 +457,7 @@ impl<'until_build, 'post_build> CreateColumn<'post_build>
456
457
"DEFAULT {}" ,
457
458
match d. data_type {
458
459
DbType :: Date => "CURRENT_DATE" ,
459
- DbType :: DateTime => "CURRENT_TIMESTAMP " ,
460
+ DbType :: DateTime => "now() " ,
460
461
DbType :: Timestamp => "CURRENT_TIMESTAMP" ,
461
462
DbType :: Time => "CURRENT_TIME" ,
462
463
_ => "" ,
You can’t perform that action at this time.
0 commit comments