Expand journal meta with soft delete. This pushes Firefly to 4.2.0.

This commit is contained in:
James Cole 2016-11-25 17:42:45 +01:00
parent c049d5cfa6
commit b739859c64
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 37 additions and 0 deletions

View File

@ -15,6 +15,7 @@ namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class TransactionJournalMeta
@ -24,6 +25,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
class TransactionJournalMeta extends Model
{
use SoftDeletes;
protected $dates = ['created_at', 'updated_at'];
protected $fillable = ['transaction_journal_id', 'name', 'data', 'hash'];
protected $table = 'journal_meta';

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Class ChangesForV420
*/
class ChangesForV420 extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'journal_meta', function (Blueprint $table) {
$table->softDeletes();
}
);
}
}