53 lines
1.5 KiB
PHP
53 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class EdiBandSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
|
|
Schema::disableForeignKeyConstraints();
|
|
DB::table('edi_bands')->truncate();
|
|
Schema::enableForeignKeyConstraints();
|
|
|
|
$edi_bands = [
|
|
['value' => '50 Mhz'], //1
|
|
['value' => '144 Mhz'], //2
|
|
['value' => '145 Mhz'], //3
|
|
['value' => '432 Mhz'], //4
|
|
['value' => '435 Mhz'], //5
|
|
['value' => '1.2 Ghz'], //6
|
|
['value' => '1.3 Ghz'], //7
|
|
['value' => '2.3 Ghz'], //8
|
|
['value' => '2.4 Ghz'], //9
|
|
['value' => '3.4 Ghz'], //10
|
|
['value' => '5.7 Ghz'], //11
|
|
['value' => '10 Ghz'], //12
|
|
['value' => '24 Ghz'], //13
|
|
['value' => '47 Ghz'], //14
|
|
['value' => '76 Ghz'], //15
|
|
['value' => '120 Ghz'], //16
|
|
['value' => '122 Ghz'], //17
|
|
['value' => '134 Ghz'], //18
|
|
['value' => '144 Ghz'], //19
|
|
['value' => '248 Ghz'], //20
|
|
];
|
|
|
|
foreach ($edi_bands as &$edi_band) {
|
|
$edi_band['created_at'] = now();
|
|
$edi_band['updated_at'] = now();
|
|
};
|
|
|
|
DB::table('edi_bands')->insert($edi_bands);
|
|
}
|
|
}
|