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>
26 lines
665 B
PHP
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");
|
|
}
|
|
}
|