From bec45d60e5a766f22319dde63453d18c6c23605e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 22 Feb 2025 18:03:03 +0100 Subject: [PATCH] Fixed migration for postgresql --- migrations/Version20250222165240.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/Version20250222165240.php b/migrations/Version20250222165240.php index 5dd73d44..84e4f709 100644 --- a/migrations/Version20250222165240.php +++ b/migrations/Version20250222165240.php @@ -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