fix: reorg migrtion
This commit is contained in:
@@ -97,17 +97,17 @@ return new class extends Migration
|
|||||||
'--force' => true,
|
'--force' => true,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Artisan::call('db:seed', [
|
||||||
|
'--class' => MarketDataSeeder::class,
|
||||||
|
'--force' => true,
|
||||||
|
]);
|
||||||
|
|
||||||
CurrencyRate::timeSeriesRates(
|
CurrencyRate::timeSeriesRates(
|
||||||
Holding::all()->groupBy('market_data.currency')->keys()->toArray(),
|
Holding::all()->groupBy('market_data.currency')->keys()->toArray(),
|
||||||
Transaction::min('date')
|
Transaction::min('date')
|
||||||
);
|
);
|
||||||
|
|
||||||
CurrencyRate::refreshCurrencyData();
|
CurrencyRate::refreshCurrencyData();
|
||||||
|
|
||||||
Artisan::call('db:seed', [
|
|
||||||
'--class' => MarketDataSeeder::class,
|
|
||||||
'--force' => true,
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user