SuperSeller3000/migrations/Version20260520090000.php
Simon Kuehn 61ce94bc6f feat: map eBay aspects to Article fields (Marke→manufacturer, PN→modelNumber)
Adds an 'Artikelfeld' action in the aspect import UI alongside skip/match/create.
Aspects like 'Marke' and 'Herstellernummer' auto-detect to manufacturer/modelNumber
via ARTICLE_FIELD_ALIASES. Mappings are persisted as a JSON column on ArticleType.
EbayAdapter.buildAspects() now reads these mappings and populates them from the
article's direct fields when building eBay listing aspects.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 20:34:49 +00:00

26 lines
665 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260520090000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add ebay_aspect_field_mappings JSON column to article_types';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE app.article_types ADD COLUMN ebay_aspect_field_mappings JSON DEFAULT NULL");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE app.article_types DROP COLUMN ebay_aspect_field_mappings");
}
}