All of this should contain one working test.

This commit is contained in:
James Cole
2014-11-18 10:33:38 +01:00
parent 0afe3c48a1
commit 7329c0b200
9 changed files with 31 additions and 54 deletions

View File

@@ -1,33 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
class ExpandRemindersTable extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'reminders', function (Blueprint $table) {
$table->string('title');
$table->text('data');
}
);
}
}

View File

@@ -1,6 +1,7 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class ExtendPiggybankEvents extends Migration
{

View File

@@ -26,10 +26,8 @@ class EventTableAdditions1 extends Migration
// remove some fields:
Schema::table(
'reminders', function (Blueprint $table) {
$table->dropColumn('title');
$table->dropColumn('data');
$table->integer('remembersable_id')->unsigned()->nullable();
$table->string('remembersable_type');
$table->string('remembersable_type')->nullable();
}
);
}