Files
laraundfelix/database/migrations/2026_11_16_150000_media_deliveries.php
T
LarsandCursor 5e763d15ec
Deploy Test / test (push) Successful in 17s
Deploy Test / deploy (push) Successful in 25s
Ergaenze Stammdaten, Suche, Dimensionen, Abdeckung und Ausgabenachweis
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-16 08:24:23 +01:00

29 lines
932 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('media_deliveries', function (Blueprint $table) {
$table->id();
$table->foreignId('grant_id')->constrained()->restrictOnDelete();
$table->foreignId('license_article_id')->constrained()->restrictOnDelete();
$table->foreignId('article_release_id')->constrained()->restrictOnDelete();
$table->foreignId('content_element_version_id')->constrained()->restrictOnDelete();
$table->string('action');
$table->string('format');
$table->timestamp('delivered_at');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('media_deliveries');
}
};