Critical fixes: - Make MigrateConstructeurLinks migration no-op (legacy tables already dropped) - Add explicit ON CONFLICT (id) target in RestoreConstructeurLinks migration - Replace N+1 queries with 4 bulk GROUP BY in ConstructeurStatsController - Declare missing versionListRef template ref in machine detail page - Add missing await on removeMachineDocument, cast activeTab as string Important fixes: - Add lang="ts" to ToastContainer and constructeurs page - Type entityType as union in UsedInSection/useUsedIn - Remove dead duration param from showError - Update back-link props to new /catalogues/* URLs (3 pages) - Replace raw error blocks with EmptyState in component/piece detail pages - Type handleFillEntity params and machineInfoCardRef Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
984 B
PHP
34 lines
984 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DoctrineMigrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
/**
|
|
* Migrate constructeur associations from legacy ManyToMany join tables
|
|
* (_composantconstructeurs, _piececonstructeurs, _machineconstructeurs, _productconstructeurs)
|
|
* to the new ConstructeurLink entity tables.
|
|
*/
|
|
final class Version20260405_MigrateConstructeurLinks extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return 'Migrate constructeur links from legacy M2M tables to new link entity tables';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
// No-op: legacy M2M tables (_composantconstructeurs, _piececonstructeurs, etc.)
|
|
// were already dropped by Version20260331121257.
|
|
// The actual data restoration is handled by Version20260405_RestoreConstructeurLinksFromBackup.
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
// No-op
|
|
}
|
|
}
|