From 08872af385c17389aed3ed85ce18ba564b90326a Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Thu, 16 Feb 2017 18:38:04 +0300 Subject: [PATCH] 5.7 support --- source/Spiral/Models/Traits/TimestampsTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Spiral/Models/Traits/TimestampsTrait.php b/source/Spiral/Models/Traits/TimestampsTrait.php index 6ac098f85..5640d1833 100644 --- a/source/Spiral/Models/Traits/TimestampsTrait.php +++ b/source/Spiral/Models/Traits/TimestampsTrait.php @@ -121,8 +121,8 @@ private static function __timestamps__describeListener() //Registering fields in schema switch (get_class($event->reflection())) { case RecordSchema::class: - $schema['time_created'] = 'timestamp,null'; - $schema['time_updated'] = 'timestamp,null'; + $schema['time_created'] = 'datetime,null'; + $schema['time_updated'] = 'datetime,null'; break; case DocumentSchema::class: $schema['timeCreated'] = 'timestamp';