Skip to content

Commit bec45d6

Browse files
committed
Fixed migration for postgresql
1 parent 019e67a commit bec45d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrations/Version20250222165240.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public function getDescription(): string
2020
public function up(Schema $schema): void
2121
{
2222
//Change the old discriminator values to the new ones
23-
$this->addSql('UPDATE attachments SET class_name = "Part" WHERE class_name = "PartDB\Part"');
24-
$this->addSql('UPDATE attachments SET class_name = "Device" WHERE class_name = "PartDB\Device"');
23+
$this->addSql("UPDATE attachments SET class_name = 'Part' WHERE class_name = 'PartDB\Part'");
24+
$this->addSql("UPDATE attachments SET class_name = 'Device' WHERE class_name = ''PartDB\Device'");
2525
}
2626

2727
public function down(Schema $schema): void

0 commit comments

Comments
 (0)