Skip to content

Firefly III: a personal finances manager

A transaction may now have a currency. This may proof to be useful when transferring money between accounts with different currencies.

James Colebac7a7355588
diff --git a/database/migrations/2016_12_28_203205_changes_for_v431.php b/database/migrations/2016_12_28_203205_changes_for_v431.php
index 8b1ae14c79..2411bfe498 100644
--- a/database/migrations/2016_12_28_203205_changes_for_v431.php
+++ b/database/migrations/2016_12_28_203205_changes_for_v431.php
@@ -42,13 +42,6 @@ class ChangesForV431 extends Migration
}
);
- // change field "start_date" to "startdate"
- // Schema::table(
- // 'budget_limits', function (Blueprint $table) {
- // $table->renameColumn('startdate', 'start_date');
- // }
- // );
-
}
/**
diff --git a/database/migrations/2017_04_13_163623_changes_for_v440.php b/database/migrations/2017_04_13_163623_changes_for_v440.php
index 6342fc46d1..e19755c515 100644
--- a/database/migrations/2017_04_13_163623_changes_for_v440.php
+++ b/database/migrations/2017_04_13_163623_changes_for_v440.php
@@ -46,6 +46,13 @@ class ChangesForV440 extends Migration
}
);
}
+ //
+ Schema::table(
+ 'transactions', function (Blueprint $table) {
+ $table->integer('transaction_currency_id', false, true)->after('description')->nullable();
+ $table->foreign('transaction_currency_id')->references('id')->on('transaction_currencies')->onDelete('set null');
+ }
+ );
}
}