Zeige auf der Shopkachel Titelbild, Saeulen, Materialart mit Symbol und Marker
- ShopCatalog als gemeinsame Datenquelle der Kacheln, shop/kachel als Partial - Titelbild nur mit Website-Freigabe (PresentationMedia::coverPresentation), schmueckend mit leerem alt - Symbol je Materialart (Stammdaten), Marker Neu, Aktualisiert, Beliebt mit Einstellung am Artikel - Migration 2026_12_01_100000, rein ergaenzend - ADR-54, Plan, DEPLOYMENT.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
db3a6ba779
commit
0ac70884cc
18 files changed
+991
-88
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Shopdarstellung (ADR-54), rein ergänzend: ein Symbol je Materialart (Schlüssel der Symbolbibliothek) und die Marker
|
||||
* „Neu“, „Aktualisiert“, „Beliebt“ je Lizenzartikel. Beide Spalten sind leer zulässig; ein Rollback des Codes lässt sie
|
||||
* unbenutzt liegen.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('editorial_content_kinds', function (Blueprint $table): void {
|
||||
$table->string('symbol', 60)->nullable()->after('label');
|
||||
});
|
||||
|
||||
Schema::table('license_articles', function (Blueprint $table): void {
|
||||
$table->json('shop_markers')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('license_articles', function (Blueprint $table): void {
|
||||
$table->dropColumn('shop_markers');
|
||||
});
|
||||
|
||||
Schema::table('editorial_content_kinds', function (Blueprint $table): void {
|
||||
$table->dropColumn('symbol');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user