seed market data on install
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Database\Seeders\MarketDataSeeder;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Support\Facades\Artisan;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
class CreateMarketDataTable extends Migration
|
class CreateMarketDataTable extends Migration
|
||||||
{
|
{
|
||||||
@@ -29,6 +31,10 @@ class CreateMarketDataTable extends Migration
|
|||||||
$table->json('meta_data')->nullable();
|
$table->json('meta_data')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Artisan::call('db:seed', [
|
||||||
|
'--class' => MarketDataSeeder::class,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user