37 lines
861 B
PHP
37 lines
861 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateUploadsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('uploads', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->boolean('is_completed');
|
|
$table->boolean('is_processing');
|
|
$table->integer('number_photos')->default(0);
|
|
$table->integer('number_successful')->default(0);
|
|
$table->integer('number_failed')->default(0);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('uploads');
|
|
}
|
|
}
|