mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Removed some old code, added todo's.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
@@ -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');
|
||||
}
|
||||
|
@@ -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');
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user