Files
laraundfelix/database/migrations/2026_11_15_160000_add_media_description.php
T
LarsandCursor af85a94cd5
Deploy Test / test (push) Successful in 15s
Deploy Test / deploy (push) Successful in 22s
Zeige Medienfassungen in der Verwaltung und halte Beschreibungen davon getrennt.
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>
2026-11-15 11:25:08 +01:00

31 lines
820 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::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');
});
}
};