fix
This commit is contained in:
parent
997fbefa20
commit
353790dd3b
@ -16,7 +16,10 @@ public function up()
|
||||
|
||||
Schema::connection('mongodb')->create('transactions', function (Blueprint $collection) {
|
||||
$collection->unsignedBigInteger('user_id')->index();
|
||||
$collection->expire('created_at', now()->addYear());
|
||||
|
||||
// a year
|
||||
$year = 365 * 24 * 60 * 60;
|
||||
$collection->expire('created_at', $year);
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user