From 036a1158a074bd557b66813373be389801824361 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 17 Jul 2018 18:02:07 -0600 Subject: [PATCH] Add ImportJob model/migration --- app/Http/Controllers/ImportDataController.php | 10 ----- app/ImportJob.php | 10 +++++ ..._04_26_003259_create_import_jobs_table.php | 38 +++++++++++++++++++ 3 files changed, 48 insertions(+), 10 deletions(-) delete mode 100644 app/Http/Controllers/ImportDataController.php create mode 100644 app/ImportJob.php create mode 100644 database/migrations/2018_04_26_003259_create_import_jobs_table.php diff --git a/app/Http/Controllers/ImportDataController.php b/app/Http/Controllers/ImportDataController.php deleted file mode 100644 index 1b0a12e63..000000000 --- a/app/Http/Controllers/ImportDataController.php +++ /dev/null @@ -1,10 +0,0 @@ -increments('id'); + $table->bigInteger('profile_id')->unsigned(); + $table->string('service')->default('instagram'); + $table->string('uuid')->nullable(); + $table->string('storage_path')->nullable(); + $table->tinyInteger('stage')->unsigned()->default(0); + $table->text('media_json')->nullable(); + $table->timestamp('completed_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('import_jobs'); + } +}