2019_05_03_230115_create_crypto_table.php
721 Bytes
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCryptoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('crypto', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('symbol',100);
$table->string('name',100);
$table->double('rate');
$table->timestamp('updated_at');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('crypto');
}
}