mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 18:58:07 +00:00
Some code used for #164
This commit is contained in:
@@ -16,7 +16,7 @@ class ChangesForV380 extends Migration
|
|||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::drop('export_jobs');
|
Schema::drop('export_jobs');
|
||||||
|
Schema::drop('journal_meta');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -42,7 +42,8 @@ class ChangesForV380 extends Migration
|
|||||||
);
|
);
|
||||||
|
|
||||||
// new table for transaction journal meta, "journal_meta"
|
// new table for transaction journal meta, "journal_meta"
|
||||||
Schema::create('journal_meta', function(Blueprint $table) {
|
Schema::create(
|
||||||
|
'journal_meta', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->integer('transaction_journal_id')->unsigned();
|
$table->integer('transaction_journal_id')->unsigned();
|
||||||
@@ -53,6 +54,7 @@ class ChangesForV380 extends Migration
|
|||||||
|
|
||||||
// link to transaction journal
|
// link to transaction journal
|
||||||
$table->foreign('transaction_journal_id')->references('id')->on('transaction_journals')->onDelete('cascade');
|
$table->foreign('transaction_journal_id')->references('id')->on('transaction_journals')->onDelete('cascade');
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user