Files
Inventory/migrations/Version20260125102000.php
2026-01-25 11:40:41 +01:00

28 lines
617 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260125102000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add productIds JSON column to pieces to support multiple product requirements.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE pieces ADD productIds JSON DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE pieces DROP productIds');
}
}