Skip to content

Conversation

@sresnik-radicle
Copy link

@sresnik-radicle sresnik-radicle commented Apr 15, 2025

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

This is a fix for #6820 . In the metadata queries for the DATABASECHANGELOG table, the db_id is passed in as a parameter to the object_name and object_schema_name functions in the query for table meta data, and column meta data. This results in an empty result set, and a failure when executing Liquibase.

Things to be aware of

N/A

Things to worry about

N/A

Additional Context

This issue was discovered by running against the master database on an Azure SQL Managed Instance more than once. The first time, the DATABASECHANGELOG table is created correctly, subsequent runs fail when Liquibase tries to create the table again.

@sresnik-radicle
Copy link
Author

I would appreciate a little guidance on any tests that should be added for this change.

@filipelautert
Copy link
Collaborator

I would appreciate a little guidance on any tests that should be added for this change.

@MalloD12 could you suggest some tests here?

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