Fixed migration for postgresql

This commit is contained in:
Jan Böhmer 2025-02-22 18:03:03 +01:00
parent 019e67a676
commit bec45d60e5

View file

@ -20,8 +20,8 @@ final class Version20250222165240 extends AbstractMigration
public function up(Schema $schema): void
{
//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 = 'Part' WHERE class_name = 'PartDB\Part'");
$this->addSql("UPDATE attachments SET class_name = 'Device' WHERE class_name = ''PartDB\Device'");
}
public function down(Schema $schema): void