addSql($sql); } } public function down(Schema $schema): void { foreach (ColumnCommentsCatalog::comments() as $table => $entries) { $quotedTable = '"'.str_replace('"', '""', $table).'"'; foreach ($entries as $column => $_) { if ('_table' === $column) { $this->addSql(sprintf('COMMENT ON TABLE %s IS NULL', $quotedTable)); continue; } $this->addSql(sprintf( 'COMMENT ON COLUMN %s.%s IS NULL', $quotedTable, '"'.str_replace('"', '""', $column).'"', )); } } } }