Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function up()
$table->json('data');
$table->json('metadata');

$table->timestamps();
$table->timestamp('created_at')->nullable();
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function up()

$table->string('state_type')->index();

$table->timestamps();
$table->timestamp('created_at')->nullable();
});
}

Expand Down
2 changes: 0 additions & 2 deletions src/Lifecycle/EventStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ protected function formatForWrite(array $event_objects): array
'data' => app(Serializer::class)->serialize($event),
'metadata' => app(Serializer::class)->serialize($this->metadata->get($event)),
'created_at' => app(MetadataManager::class)->getEphemeral($event, 'created_at', now()),
'updated_at' => now(),
], $event_objects);
}

Expand All @@ -143,7 +142,6 @@ protected function formatRelationshipsForWrite(array $event_objects): array
'state_id' => Id::from($state->id),
'state_type' => $state::class,
'created_at' => now(),
'updated_at' => now(),
]))
->values()
->all();
Expand Down
2 changes: 2 additions & 0 deletions src/Models/VerbEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

class VerbEvent extends Model
{
public const UPDATED_AT = null;

public $guarded = [];

protected $casts = [
Expand Down
2 changes: 2 additions & 0 deletions src/Models/VerbStateEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class VerbStateEvent extends Model
{
public const UPDATED_AT = null;

public $guarded = [];

public function getConnectionName()
Expand Down