hauling config seeder
This commit is contained in:
@@ -19,7 +19,7 @@ class CreateHualingConfigTable extends Migration
|
||||
$table->string('load_size')->unique();
|
||||
$table->unsignedBigInteger('min_load_size');
|
||||
$table->unsignedBigInteger('max_load_size');
|
||||
$table->decimal('price_per_jump');
|
||||
$table->decimal('price_per_jump', 12, 2);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,21 +18,21 @@ class HaulingConfigSeeder extends Seeder
|
||||
'load_size' => 'small',
|
||||
'min_load_size' => 0,
|
||||
'max_load_size' => 8000,
|
||||
'price_per_jump' => 600000,
|
||||
'price_per_jump' => 600000.00,
|
||||
]);
|
||||
|
||||
HaulingConfig::insert([
|
||||
'load_size' => 'medium',
|
||||
'min_load_size' => 8000,
|
||||
'max_load_size' => 57500,
|
||||
'price_per_jump' => 800000,
|
||||
'price_per_jump' => 800000.00,
|
||||
]);
|
||||
|
||||
HaulingConfig::insert([
|
||||
'load_size' => 'large',
|
||||
'min_load_size' => 57500,
|
||||
'max_load_size' => 800000,
|
||||
'price_per_jump' => 1000000,
|
||||
'price_per_jump' => 1000000.00,
|
||||
]);
|
||||
|
||||
printf("Finished adding hauling configuration.\r\n");
|
||||
|
||||
Reference in New Issue
Block a user