database/migrations/2021_01_01_000002_create_temporary_uploads_table.php
<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTemporaryUploadsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create(config('cortex.foundation.tables.temporary_uploads'), function (Blueprint $table) {
$table->string('id');
$table->string('session_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists(config('cortex.foundation.tables.temporary_uploads'));
}
}