mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 06:57:22 +08:00
add seeders and migrations + rhilip/bencode
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFundsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('funds', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->decimal('usd')->default(0.00);
|
||||
$table->decimal('cny')->default(0.00);
|
||||
$table->unsignedMediumInteger('user')->default(0);
|
||||
$table->dateTime('added')->nullable();
|
||||
$table->string('memo')->default('');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('funds');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user