Fix columns migrating for PostgreSQL

Columns generated in event table and t_datetime in
trait table shouldn't be type of double precision.

Change-Id: Ib9c5c8de034b5d1ccaa070b6de7c0d682160200c
Closes-Bug: #1337851
Merge "Fix columns migrating for PostgreSQL"