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:
@@ -11,7 +11,7 @@ class CardStatesMigrator
|
||||
{
|
||||
DB::table('card_states')->truncate();
|
||||
|
||||
$path = database_path('data/nurmuhammetsdb/card_states.json');
|
||||
$path = database_path('data/tested/card_states.json');
|
||||
|
||||
$rawData = File::json($path);
|
||||
|
||||
@@ -19,5 +19,8 @@ class CardStatesMigrator
|
||||
DB::table('card_states')
|
||||
->insert($data);
|
||||
}
|
||||
|
||||
DB::statement("SELECT setval('card_states_id_seq', (SELECT MAX(id) from card_states));");
|
||||
DB::statement("SELECT nextval('card_states_id_seq');");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user