Skip to content

Commit 38ede21

Browse files
committed
Datastore TTL fix
exclude expire_at column from indexes
1 parent 7a52972 commit 38ede21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Eloquent/Model.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,10 @@ public function finishBulkInsert($id = null)
419419
public function getQueryOptions(): array
420420
{
421421
return [
422-
'excludeFromIndexes' => $this->excludeFromIndexes,
422+
'excludeFromIndexes' => [
423+
...$this->excludeFromIndexes,
424+
$this->getExpireAtColumn(),
425+
],
423426
];
424427
}
425428

0 commit comments

Comments
 (0)