- Remove Composant.structure property, getter/setter - Remove Piece.productIds property, setProductIds() - Update fixtures to remove dropped columns - Add migrations to drop both columns Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
743 B
PHP
31 lines
743 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DoctrineMigrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* Drop the legacy productIds JSON column from pieces table.
|
|
* Data has been migrated to the piece_products join table.
|
|
*/
|
|
final class Version20260312200000 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'Drop legacy productIds JSON column from pieces table';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE pieces DROP COLUMN IF EXISTS productids');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE pieces ADD COLUMN productids JSON DEFAULT NULL');
|
|
}
|
|
}
|