Zeige Medienfassungen in der Verwaltung und halte Beschreibungen davon getrennt.
Deploy Test / test (push) Successful in 15s
Deploy Test / deploy (push) Successful in 22s

Eine Fassung bleibt nummeriert und kann deaktiviert werden. Beschreibung und fachliche Säulen gehören zum Medium und legen keine neue Fassung an.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 11:25:08 +01:00
1 parent 12f12117dd
commit af85a94cd5
28 files changed
+1002 -168

No files matched your search

@@ -0,0 +1,29 @@
<?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('pillars', function (Blueprint $table) {
$table->id();
$table->string('name')->unique();
$table->timestamps();
});
Schema::create('content_element_pillar', function (Blueprint $table) {
$table->foreignId('content_element_id')->constrained()->cascadeOnDelete();
$table->foreignId('pillar_id')->constrained()->restrictOnDelete();
$table->primary(['content_element_id', 'pillar_id']);
});
}
public function down(): void
{
Schema::dropIfExists('content_element_pillar');
Schema::dropIfExists('pillars');
}
};
@@ -0,0 +1,30 @@
<?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::table('content_elements', function (Blueprint $table) {
$table->text('description')->nullable();
});
Schema::table('content_element_versions', function (Blueprint $table) {
$table->text('block_reason')->nullable();
});
}
public function down(): void
{
Schema::table('content_elements', function (Blueprint $table) {
$table->dropColumn('description');
});
Schema::table('content_element_versions', function (Blueprint $table) {
$table->dropColumn('block_reason');
});
}
};