update
This commit is contained in:
parent
3fa05df868
commit
7928fb1efc
@ -16,13 +16,15 @@ public function up()
|
|||||||
|
|
||||||
Schema::connection('mongodb')->create('transactions', function (Blueprint $collection) {
|
Schema::connection('mongodb')->create('transactions', function (Blueprint $collection) {
|
||||||
$collection->unsignedBigInteger('user_id')->index();
|
$collection->unsignedBigInteger('user_id')->index();
|
||||||
|
$collection->unsignedBigInteger(
|
||||||
|
'type'
|
||||||
|
)->index();
|
||||||
|
$collection->unsignedBigInteger('payment')->index();
|
||||||
|
|
||||||
// a year
|
// a year
|
||||||
$year = 365 * 24 * 60 * 60;
|
$year = 365 * 24 * 60 * 60;
|
||||||
$collection->expire('created_at', $year);
|
$collection->expire('created_at', $year);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user