From 2da33bae430042b8f4c0c9fc15f832e0e9068003 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 11 Feb 2016 08:13:04 +0100 Subject: [PATCH] Some code used for #164 --- .../migrations/2016_02_04_144117_changes_for_v380.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/database/migrations/2016_02_04_144117_changes_for_v380.php b/database/migrations/2016_02_04_144117_changes_for_v380.php index 5c027deded..e6fe614ee7 100644 --- a/database/migrations/2016_02_04_144117_changes_for_v380.php +++ b/database/migrations/2016_02_04_144117_changes_for_v380.php @@ -16,7 +16,7 @@ class ChangesForV380 extends Migration public function down() { Schema::drop('export_jobs'); - + Schema::drop('journal_meta'); } /** @@ -42,7 +42,8 @@ class ChangesForV380 extends Migration ); // 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->timestamps(); $table->integer('transaction_journal_id')->unsigned(); @@ -53,6 +54,7 @@ class ChangesForV380 extends Migration // link to transaction journal $table->foreign('transaction_journal_id')->references('id')->on('transaction_journals')->onDelete('cascade'); - }); + } + ); } }