lolispace-applications/database/migrations/2025_05_01_141825_create_uploads_table.php
weeb 0c705c7235
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Init
2025-05-01 21:59:51 +02:00

30 lines
655 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('uploads', function (Blueprint $table) {
$table->id();
$table->foreignId('application_id')->constrained()->cascadeOnDelete();
$table->string('file_path');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('uploads');
}
};