mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
38 lines
820 B
PHP
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');
|
|
}
|
|
}
|