Piggy bank supports notes (#350)

This commit is contained in:
James Cole
2016-10-22 10:13:49 +02:00
parent 091f6e918b
commit e4d249e73c
8 changed files with 158 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Class ChangesForV410
*/
class ChangesForV410 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notes');
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(
'notes', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->softDeletes();
$table->integer('noteable_id', false, true);
$table->string('noteable_type');
$table->string('title')->nullable();
$table->text('text')->nullable();
}
);
}
}