Skip to content

Commit

Permalink
Merge pull request #221 from OpenSID/issue220-duplikat-seeder
Browse files Browse the repository at this point in the history
duplikat seeder
  • Loading branch information
vickyrolanda authored Jul 5, 2023
2 parents 8c9dfff + 0378483 commit 1a23041
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
Expand All @@ -26,6 +27,11 @@ public function up()
$table->string('sebutan_kab', 100);
$table->timestamps();
});

Artisan::call('db:seed', [
'--class' => 'IdentitasSeeder',
'--force' => true,
]);
}

/**
Expand Down
30 changes: 0 additions & 30 deletions database/migrations/2023_05_04_180525_seed_identitas.php

This file was deleted.

5 changes: 1 addition & 4 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
$this->call([
CreateAdminUserSeeder::class,
IdentitasSeeder::class,
]);
//
}
}

0 comments on commit 1a23041

Please sign in to comment.