Skip to content

Firefly III: a personal finances manager

Extend model to allow for more data during the import.

James Cole2775690fc8ec
diff --git a/app/Models/ImportJob.php b/app/Models/ImportJob.php
index 3b106bbbb2..3673dae624 100644
--- a/app/Models/ImportJob.php
+++ b/app/Models/ImportJob.php
@@ -39,6 +39,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\ImportJob whereStatus($value)
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\ImportJob whereConfiguration($value)
* @mixin \Eloquent
+ * @property string $extended_status
+ * @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\ImportJob whereExtendedStatus($value)
*/
class ImportJob extends Model
{
diff --git a/database/migrations/2016_08_13_164051_extend-import-table.php b/database/migrations/2016_08_13_164051_extend-import-table.php
new file mode 100644
index 0000000000..8e1d2e8798
--- /dev/null
+++ b/database/migrations/2016_08_13_164051_extend-import-table.php
@@ -0,0 +1,34 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+
+/**
+ * Class ExtendImportTable
+ */
+class ExtendImportTable extends Migration
+{
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ //
+ }
+
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table(
+ 'import_jobs', function (Blueprint $table) {
+ $table->text('extended_status');
+ }
+ );
+ }
+}