mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-04 04:30:39 -06:00
Expand journal meta with soft delete. This pushes Firefly to 4.2.0.
This commit is contained in:
parent
c049d5cfa6
commit
b739859c64
@ -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';
|
||||
|
35
database/migrations/2016_11_24_210552_changes_for_v420.php
Normal file
35
database/migrations/2016_11_24_210552_changes_for_v420.php
Normal 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();
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user