Skip to content

Fix AnyBlob content type column removal in incremental changelog#33324

Open
218broadway-svg wants to merge 1 commit into
jhipster:mainfrom
218broadway-svg:fix/drop-anyblob-content-type-17613
Open

Fix AnyBlob content type column removal in incremental changelog#33324
218broadway-svg wants to merge 1 commit into
jhipster:mainfrom
218broadway-svg:fix/drop-anyblob-content-type-17613

Conversation

@218broadway-svg

Copy link
Copy Markdown

Fixes #17613.

Summary

  • drop the generated <field>_content_type Liquibase column when an AnyBlob/blob field is removed in an incremental changelog
  • add a regression test covering removal of an AnyBlob field

Verification

  • npm install
  • npm run check-types
  • npx prettier --check generators/liquibase/incremental-liquibase.spec.ts

I also tried to run the focused test with:

npx esmocha generators/liquibase/incremental-liquibase.spec.ts --forbid-only --grep 'blob field with content type'

On Windows this currently fails before the assertion with Node's ESM loader rejecting an absolute c: path (ERR_UNSUPPORTED_ESM_URL_SCHEME). The added regression test is scoped to the generated changelog output and should run normally in the Linux CI environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incremental changelog doesn't remove *_content_type column on removal of an AnyBlob field

1 participant