Skip to content

Firefly III: a personal finances manager

Add IBAN field.

James Cole4a20eef35181
diff --git a/database/migrations/2015_06_23_050233_changes_for_v3451.php b/database/migrations/2015_06_23_050233_changes_for_v3451.php
index 7c2ee2ccaa..72c6f799f2 100644
--- a/database/migrations/2015_06_23_050233_changes_for_v3451.php
+++ b/database/migrations/2015_06_23_050233_changes_for_v3451.php
@@ -1,6 +1,7 @@
<?php
use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
/**
* Class ChangesForV3451
@@ -14,12 +15,13 @@ class ChangesForV3451 extends Migration
*/
public function down()
{
-
+ Schema::table(
+ 'accounts', function (Blueprint $table) {
+ $table->dropColumn('iban');
+ }
+ );
}
- //$table->smallInteger('reminder_skip')->unsigned();
- //$table->boolean('remind_me');
-
/**
* Run the migrations.
*
@@ -27,7 +29,11 @@ class ChangesForV3451 extends Migration
*/
public function up()
{
-
+ Schema::table(
+ 'accounts', function (Blueprint $table) {
+ $table->string('iban', 38)->nullable();
+ }
+ );
}
}
diff --git a/database/migrations/2015_07_03_102450_changes_for_v3462.php b/database/migrations/2015_07_03_102450_changes_for_v3462.php
new file mode 100644
index 0000000000..7dd6e4b833
--- /dev/null
+++ b/database/migrations/2015_07_03_102450_changes_for_v3462.php
@@ -0,0 +1,28 @@
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class ChangesForV3462 extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ // add IBAN to accounts:
+
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ //
+ }
+}