mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
Merge pull request #4125 from strapi/fix/default-datetime
Do not set default timestamp value for date types
This commit is contained in:
commit
a516e197b4
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user