Veröffentliche fachliche Säulen als Themenbereiche der Website.
Dieselbe Liste trägt die öffentliche Seite. Medien bleiben privat, Seiten können mehreren Säulen zugeordnet sein. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
af85a94cd5
commit
8cd382c357
21 files changed
+379
-13
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<?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('pillars', function (Blueprint $table) {
|
||||
$table->string('slug')->nullable()->unique();
|
||||
$table->text('public_summary')->nullable();
|
||||
$table->unsignedInteger('sort_order')->default(0);
|
||||
$table->timestamp('published_at')->nullable();
|
||||
});
|
||||
|
||||
Schema::create('page_pillar', function (Blueprint $table) {
|
||||
$table->foreignId('page_id')->constrained()->cascadeOnDelete();
|
||||
$table->foreignId('pillar_id')->constrained()->restrictOnDelete();
|
||||
$table->primary(['page_id', 'pillar_id']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('page_pillar');
|
||||
|
||||
Schema::table('pillars', function (Blueprint $table) {
|
||||
$table->dropColumn(['slug', 'public_summary', 'sort_order', 'published_at']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user