Removed some old code, added todo's.

This commit is contained in:
James Cole
2014-11-17 20:55:31 +01:00
parent 696e9a6fde
commit 15e99bd672
10 changed files with 62 additions and 38 deletions

View File

@@ -23,7 +23,7 @@ class ExpandRemindersTable extends Migration
public function up()
{
Schema::table(
'reminders', function ($table) {
'reminders', function (Blueprint $table) {
$table->string('title');
$table->text('data');
}

View File

@@ -23,7 +23,7 @@ class ExtendPiggybankEvents extends Migration
public function up()
{
Schema::table(
'piggybank_events', function ($table) {
'piggybank_events', function (Blueprint $table) {
$table->integer('transaction_journal_id')->unsigned()->nullable();
$table->foreign('transaction_journal_id')->references('id')->on('transaction_journals')->onDelete('set null');
}

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class EventTableAdditions1 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// 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');
}
);
}
}