Change rank field from image_link to image_url for consistency

This commit is contained in:
Nabeel Shahzad
2018-03-17 12:19:26 -05:00
parent e9baf4acb5
commit 3c39aeee43
4 changed files with 6 additions and 6 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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',