Get rid of type column in imports table and replace it with column_happened_on, column_description and column_amount
MODIFY
database/migrations/2018_10_14_122724_create_imports_table.php
database/migrations/2018_10_14_122724_create_imports_table.php
@@ -10,9 +10,11 @@ class CreateImportsTable extends Migration {
$table->increments('id');
$table->unsignedInteger('space_id');
$table->string('name');
- $table->string('type');
$table->string('file');
$table->integer('status')->default(0);
+ $table->string('column_happened_on')->nullable();
+ $table->string('column_description')->nullable();
+ $table->string('column_amount')->nullable();
$table->timestamps();
$table->softDeletes();

Get rid of type column in imports table and replace it with column_happened_on, column_description and column_amount