Files
exchange/database/migrations/2018_04_25_085705_create_rates_table.php
T
2018-04-27 18:03:16 +08:00

38 lines
820 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRatesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('rates', function (Blueprint $table) {
$table->increments('id');
$table->double('x1_cash');
$table->double('x1_cheque');
$table->double('x1_ba');
$table->double('x2_cash');
$table->double('x2_cheque');
$table->double('x2_ba');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('rates');
}
}