Skip to content

Commit

Permalink
5.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Feb 16, 2017
1 parent 81c2579 commit 08872af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Spiral/Models/Traits/TimestampsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 08872af

Please sign in to comment.