diff --git a/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js b/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js index 39e900c1ac..b277c191da 100644 --- a/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js +++ b/packages/strapi-hook-bookshelf/lib/buildDatabaseSchema.js @@ -412,6 +412,11 @@ const getType = ({ definition, attribute, name, tableExists = false }) => { case 'date': case 'time': case 'datetime': + if (client === 'pg') { + return 'timestamp with time zone'; + } + + return 'timestamp'; case 'timestamp': if (client === 'pg') { return 'timestamp with time zone';