Files
Gw0bm/database/migrations/2017_03_11_035727_add_donations_table.php

35 lines
753 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddDonationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('donations', function(Blueprint $table) {
$table->increments('id');
$table->string('name')->nullable();
$table->string('url')->nullable();
$table->float('amount', 5, 2);
$table->string('payment_method')->nullable();
$table->timestamp('timestamp');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('donations');
}
}