Skip to content

Commit

Permalink
seeder upd
Browse files Browse the repository at this point in the history
  • Loading branch information
theory-of-evrth committed Dec 15, 2024
1 parent 79fd3fb commit e127e8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions timeliner/database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ public function run(): void
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
DB::table('users')->truncate();
DB::table('timelines')->truncate();
DB::table('nodes')->truncate();
DB::table('milestones')->truncate();
DB::table('ownerships')->truncate();
DB::statement('SET FOREIGN_KEY_CHECKS=1;');


User::factory()->create([
'name' => 'Test User',
'email' => '[email protected]',
Expand Down

0 comments on commit e127e8b

Please sign in to comment.