change field to in acars table
This commit is contained in:
@@ -5,7 +5,8 @@ use Faker\Generator as Faker;
|
||||
$factory->define(App\Models\Acars::class, function (Faker $faker) {
|
||||
return [
|
||||
'id' => substr($faker->unique()->sha1, 0, 12),
|
||||
'pirep_id' => '', # TODO: Fill this out
|
||||
'pirep_id' => '', # fill this out by
|
||||
'log' => $faker->text(200),
|
||||
'lat' => $faker->latitude,
|
||||
'lon' => $faker->longitude,
|
||||
'heading' => $faker->numberBetween(0, 359),
|
||||
|
||||
@@ -16,7 +16,7 @@ class CreateAcarsTables extends Migration
|
||||
Schema::create('acars', function (Blueprint $table) {
|
||||
$table->string('id', 12);
|
||||
$table->string('pirep_id', 12);
|
||||
$table->string('name', 10)->nullable();
|
||||
$table->string('log')->nullable();
|
||||
$table->float('lat', 7, 4)->default(0.0);
|
||||
$table->float('lon', 7, 4)->default(0.0);
|
||||
$table->unsignedInteger('heading')->nullable();
|
||||
|
||||
Reference in New Issue
Block a user