diff --git a/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php b/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php index 957635e6..1662ebf9 100644 --- a/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php +++ b/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php @@ -63,7 +63,7 @@ class CreatePirepTables extends Migration $table->bigIncrements('id'); $table->string('pirep_id', \App\Models\Pirep::ID_MAX_LENGTH); $table->unsignedInteger('fare_id'); - $table->unsignedInteger('count')->nullable(); + $table->unsignedInteger('count')->nullable()->default(0); $table->index('pirep_id'); }); diff --git a/app/Database/seeds/sample.yml b/app/Database/seeds/sample.yml index 0f6fbf67..6489a8c2 100644 --- a/app/Database/seeds/sample.yml +++ b/app/Database/seeds/sample.yml @@ -338,23 +338,23 @@ pireps: pirep_fares: - id: 1 - pirep_id: pirep_id_1 + pirep_id: pirepid_1 fare_id: 1 count: 300 - id: 2 - pirep_id: pirep_id_1 + pirep_id: pirepid_1 fare_id: 2 count: 25 - id: 3 - pirep_id: pirep_id_1 + pirep_id: pirepid_1 fare_id: 3 count: 10 - id: 4 - pirep_id: pirep_id_2 + pirep_id: pirepid_2 fare_id: 1 count: 200 - id: 5 - pirep_id: pirep_id_2 + pirep_id: pirepid_2 fare_id: 3 count: 15 diff --git a/resources/views/admin/menu.blade.php b/resources/views/admin/menu.blade.php index 145a3590..3d334eb8 100644 --- a/resources/views/admin/menu.blade.php +++ b/resources/views/admin/menu.blade.php @@ -10,7 +10,7 @@
+ edit +