mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 08:08:05 +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 'date':
|
||||||
case 'time':
|
case 'time':
|
||||||
case 'datetime':
|
case 'datetime':
|
||||||
|
if (client === 'pg') {
|
||||||
|
return 'timestamp with time zone';
|
||||||
|
}
|
||||||
|
|
||||||
|
return 'timestamp';
|
||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
if (client === 'pg') {
|
if (client === 'pg') {
|
||||||
return 'timestamp with time zone';
|
return 'timestamp with time zone';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user