32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Seeders;
|
||
|
|
|
||
|
|
use Illuminate\Database\Seeder;
|
||
|
|
use Illuminate\Support\Facades\DB;
|
||
|
|
|
||
|
|
class MigrationSeeder extends Seeder
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the database seeds.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function run()
|
||
|
|
{
|
||
|
|
DB::table('migrations')->truncate();
|
||
|
|
DB::table('migrations')->insert([
|
||
|
|
['id' => 1, 'migration' => '2023_03_14_150900_create_app_users_table', 'batch' => 1],
|
||
|
|
['id' => 2, 'migration' => '2023_03_14_150900_create_contacts_table', 'batch' => 1],
|
||
|
|
['id' => 3, 'migration' => '2023_03_14_150900_create_directories_table', 'batch' => 1],
|
||
|
|
['id' => 4, 'migration' => '2023_03_14_150900_create_documents_table', 'batch' => 1],
|
||
|
|
['id' => 5, 'migration' => '2023_03_14_150900_create_settings_table', 'batch' => 1],
|
||
|
|
['id' => 6, 'migration' => '2023_03_14_150900_create_users_table', 'batch' => 1],
|
||
|
|
['id' => 7, 'migration' => '2023_03_14_150901_add_foreign_keys_to_contacts_table', 'batch' => 1],
|
||
|
|
['id' => 8, 'migration' => '2023_03_14_150901_add_foreign_keys_to_directories_table', 'batch' => 1],
|
||
|
|
['id' => 9, 'migration' => '2023_03_14_150901_add_foreign_keys_to_documents_table', 'batch' => 1]
|
||
|
|
]);
|
||
|
|
$this->command->warn('Seeding default Migration table.');
|
||
|
|
}
|
||
|
|
}
|