Erweiterungstätigkeiten zur IPN-Vorschlagsliste anhand von Präfixen aus den Kategorien

This commit is contained in:
Marcel Diegelmann 2025-04-01 16:10:10 +02:00
parent cbfe1d4cc8
commit 7162199e61
32 changed files with 1482 additions and 6 deletions

View file

@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250325073036 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE categories ADD part_ipn_prefix VARCHAR(255) NOT NULL AFTER partname_regex');
$this->addSql('DROP INDEX UNIQ_6940A7FE3D721C14 ON parts');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE `categories` DROP part_ipn_prefix');
$this->addSql('CREATE UNIQUE INDEX UNIQ_6940A7FE3D721C14 ON `parts` (ipn)');
}
}