Skip to content

HCK-18723: generate and reverse-engineer index comments - #211

Merged
taras-dubyk merged 4 commits into
developfrom
HCK-18461
Nov 19, 2026
Merged

taras-dubyk merged 4 commits into
developfrom
HCK-18461

Conversation

@Sylvie-P

@Sylvie-P Sylvie-P commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

https://hackolade.atlassian.net/browse/HCK-18723

Why

The Comment field of an index was in the model but never reached the database, and was lost on reverse-engineering. HCK-18723

What to look at

  • A comment-only change in the alter script gives a COMMENT ON INDEX, not a drop and recreate. It comes after a possible RENAME and targets the new name.
  • A removed comment gives COMMENT ON INDEX ... IS NULL, flagged as a drop statement like for tables: it stays commented out unless drop statements are applied.
  • An index without a name gets no comment.
  • Index comments do not follow the "comments: ignore" script options yet (there is no option for indexes).
  • Out of scope: comments on primary key and unique key constraints.
  • Renaming an index whose name needs quotes still fails in the alter script (""name""). That bug is older than this PR and is fixed in HCK-18782: fix double quoting and empty-name rename in index alter script #212.

🤖 Generated with Claude Code

Sylvie-P and others added 3 commits November 5, 2026 13:12
… scripts

Co-authored-by: Cursor <cursoragent@cursor.com>
The index query now returns obj_description of the index relation, and
prepareTableIndexes maps it to indexComment. Indexes without a comment
keep the field empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Sylvie-P Sylvie-P changed the title HCK-18723: Add support for index comments in forward-engineering and reverse-engineering HCK-18723: generate and reverse-engineer index comments Nov 19, 2026
@Sylvie-P
Sylvie-P marked this pull request as ready for review November 19, 2026 11:35
@Sylvie-P
Sylvie-P requested a review from taras-dubyk November 19, 2026 11:37
@Sylvie-P Sylvie-P self-assigned this Nov 19, 2026
@sonarqubecloud

Copy link
Copy Markdown

@taras-dubyk
taras-dubyk merged commit 4bfeae8 into develop Nov 19, 2026
5 checks passed
@taras-dubyk
taras-dubyk deleted the HCK-18461 branch November 19, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants