Skip to content

Commit 0c41b52

Browse files
committed
Fix another bug
1 parent 626818b commit 0c41b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/migrations/BaseMigrationBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ public function tmpSaveNewCol(string $tableAlias, \cebe\yii2openapi\db\ColumnSch
491491

492492
Yii::$app->db->createCommand()->createTable($tmpTableName, $column)->execute();
493493
if (ApiGenerator::isPostgres() && $columnSchema->comment) {
494-
Yii::$app->db->createCommand("COMMENT ON COLUMN $tmpTableName.$columnSchema->name IS {$this->db->quoteValue($columnSchema->comment)}")->execute();
494+
Yii::$app->db->createCommand("COMMENT ON COLUMN $tmpTableName.\"$columnSchema->name\" IS {$this->db->quoteValue($columnSchema->comment)}")->execute();
495495
}
496496

497497
$table = Yii::$app->db->getTableSchema($tmpTableName);

0 commit comments

Comments
 (0)