Refactor ActivityLogModule and clean up seeders
- 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.
This commit is contained in:
1 parent
515731003c
commit
76c05ebe7c
20 files changed
+151
-26
No files matched your search
@@ -11,7 +11,7 @@ public function migrate(): void
|
||||
{
|
||||
DB::table('loan_order_required_docs')->truncate();
|
||||
|
||||
$path = database_path('data/nurmuhammetsdb/loan_order_required_docs.json');
|
||||
$path = database_path('data/tested/loan_order_required_docs.json');
|
||||
|
||||
$rawData = File::json($path);
|
||||
|
||||
@@ -19,5 +19,8 @@ public function migrate(): void
|
||||
DB::table('loan_order_required_docs')
|
||||
->insert($data);
|
||||
}
|
||||
|
||||
DB::statement("SELECT setval('loan_order_required_docs_id_seq', (SELECT MAX(id) from loan_order_required_docs));");
|
||||
DB::statement("SELECT nextval('loan_order_required_docs_id_seq');");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user