Change rank field from image_link to image_url for consistency
This commit is contained in:
@@ -348,7 +348,7 @@ class Importer
|
||||
{
|
||||
$rank = Rank::firstOrCreate(
|
||||
['name' => $row->rank],
|
||||
['image_link' => $row->rankimage, 'hours'=>$row->minhours]
|
||||
['image_url' => $row->rankimage, 'hours'=>$row->minhours]
|
||||
);
|
||||
|
||||
$this->addMapping('ranks', $row->rankid, $rank->id);
|
||||
|
||||
@@ -16,7 +16,7 @@ class CreateRanksTable extends Migration
|
||||
Schema::create('ranks', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name', 50);
|
||||
$table->string('image_link')->nullable();
|
||||
$table->string('image_url')->nullable();
|
||||
$table->unsignedInteger('hours')->default(0);
|
||||
$table->unsignedDecimal('acars_base_pay_rate')->nullable()->default(0);
|
||||
$table->unsignedDecimal('manual_base_pay_rate')->nullable()->default(0);
|
||||
|
||||
@@ -16,7 +16,7 @@ class Rank extends BaseModel
|
||||
public $fillable = [
|
||||
'name',
|
||||
'hours',
|
||||
'image_link',
|
||||
'image_url',
|
||||
'acars_base_pay_rate',
|
||||
'manual_base_pay_rate',
|
||||
'auto_approve_acars',
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
{{ Form::label('image_link', 'Image Link:') }}
|
||||
{{ Form::text('image_link', null, ['class' => 'form-control']) }}
|
||||
<p class="text-danger">{{ $errors->first('image_link') }}</p>
|
||||
{{ Form::label('image_url', 'Image Link:') }}
|
||||
{{ Form::text('image_url', null, ['class' => 'form-control']) }}
|
||||
<p class="text-danger">{{ $errors->first('image_url') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user