micronaut-sql icon indicating copy to clipboard operation
micronaut-sql copied to clipboard

Change the way datasources are being disabled

Open radovanradic opened this issue 6 months ago • 7 comments

This is followup for https://github.com/micronaut-projects/micronaut-sql/pull/1323 and slight change how datasources can be disabled. Using global datasources.enabled was problematic because actually datasource configuration named enabled was being created in the context and when there are test-resources then it tries to resolve properties for datasource named enabled and then throws the error. This approach is maybe a bit better because each datasource can be enabled or disabled. Will need followup PR in micronaut-data to skip schema generation for disabled datasources.

radovanradic avatar Jul 29 '24 12:07 radovanradic