- Adjusted indentation in ActivityLogModule methods for consistency. - Simplified ActivityLogRepository class by removing unnecessary lines. - Updated FillJsonData seeder to streamline the run method. - Modified various Migrator classes to change JSON data paths for testing and added sequence reset statements for better database integrity.
84 lines
1.8 KiB
PHP
84 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class FillJsonData extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void {}
|
|
|
|
protected function seedUsers(): void
|
|
{
|
|
(new Migrators\UsersMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedLoanTypes(): void
|
|
{
|
|
(new Migrators\LoanTypesMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedProvinces(): void
|
|
{
|
|
(new Migrators\ProvincesMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedBranches(): void
|
|
{
|
|
(new Migrators\BranchesMigrator)->migrate();
|
|
}
|
|
|
|
protected function loanOrderRequiredDocs(): void
|
|
{
|
|
(new Migrators\LoanOrderRequiredDocsMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedLoanOrders(): void
|
|
{
|
|
(new Migrators\LoanOrdersMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedCardStates(): void
|
|
{
|
|
(new Migrators\CardStatesMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedCardTypes(): void
|
|
{
|
|
(new Migrators\CardTypesMigrator)->migrate();
|
|
}
|
|
|
|
protected function cardOrders(): void
|
|
{
|
|
(new Migrators\CardOrdersMigrator)->migrate();
|
|
}
|
|
|
|
protected function cardPinOrders(): void
|
|
{
|
|
(new Migrators\CardPinOrdersMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedVisaMasterPaymentOrders(): void
|
|
{
|
|
(new Migrators\VisaMasterPaymentOrdersMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedActionEvents(): void
|
|
{
|
|
(new Migrators\ActionEventsMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedBranchUser(): void
|
|
{
|
|
(new Migrators\BranchUserMigrator)->migrate();
|
|
}
|
|
|
|
protected function seedCurrencyRates(): void
|
|
{
|
|
(new Migrators\CurrencyRatesMigrator)->migrate();
|
|
}
|
|
}
|