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',
|
||||
|
||||
Reference in New Issue
Block a user