Fixed migration

This commit is contained in:
Jan Böhmer 2025-02-22 19:23:28 +01:00
parent bec45d60e5
commit 6fd05e1456

View file

@ -21,7 +21,7 @@ final class Version20250222165240 extends AbstractMigration
{
//Change the old discriminator values to the new ones
$this->addSql("UPDATE attachments SET class_name = 'Part' WHERE class_name = 'PartDB\Part'");
$this->addSql("UPDATE attachments SET class_name = 'Device' WHERE class_name = ''PartDB\Device'");
$this->addSql("UPDATE attachments SET class_name = 'Device' WHERE class_name = 'PartDB\Device'");
}
public function down(Schema $schema): void