SuperSeller3000/migrations/Version20260517230000.php
Simon Kuehn 6d8a06f151 feat: add step tracking, retry and article lookup to AIPipelineJob
- currentStep column (migration 20260517230000) written per pipeline stage
- recordStep() stores per-step output data and updates currentStep
- resetForRetry() requeues a failed/needs-review job
- getInventoryNumber() / getStatusLabel() helpers for admin display
- markCompleted() now merges rather than replacing outputData
- findByArticleId() added to repository for re-run lookups

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

26 lines
644 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260517230000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add current_step column to ai_pipeline_jobs for step tracking';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE app.ai_pipeline_jobs ADD COLUMN current_step VARCHAR(50) NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE app.ai_pipeline_jobs DROP COLUMN current_step');
}
}