Comments (2)
Hi @jjamieson-va, thank you for reporting this issue.
I have been able to reproduce it with Liquibase version 4.26.0, both with and without Ant. In my case the changesets still ran with no issues, but I agree that the USE
statement should be at the beginning of the script.
I'll be leaving this ticket open for the community to propose a fix. Our development team will be available to provide guidance to whoever submits a PR.
Thank you,
Tatiana
from liquibase.
Thank you Tatiana, in most cases the generated script does run without issue. Where we see an error is when using SQL Server Management Studio (SSMS). If the user logged in to SSMS attempts to run the script and they have a database selected in SSMS (e.g. master instead of myDatabase as in the example code above) that does not have the DATABASECHANGELOGLOCK table in it, then the first statement of setting locked=1 fails. The rest of the script does run successfully, but it does create a scenario where the locking is not being applied correctly prior to running the rest of the script.
from liquibase.
Related Issues (20)
- Oracle takes too long to process a simple .csv file HOT 2
- Getting Databricks error using an Oracle jdbc URL HOT 6
- changeset with relative path deployed with liquibase 4.6.0 to 4.23.1 are replayed with liquibase > 4.23.1 HOT 4
- Dead links in the README file HOT 1
- Manual approval required for workflow run 8458496760: Deploying 4.27.0 to sonatype HOT 3
- Manual approval required for workflow run 8458903067: Deploying 4.27.0 to sonatype HOT 3
- Interplay between foreign keys and the include-objects/exclude-objects flags HOT 5
- The diffChangeLog command doesn't work for Snowflake functions HOT 6
- liquibase 4.25.0 mssql server case sensitive issue with sys.sp_updateextendedproperty
- Add support for AlloyDB HOT 1
- Make Checksum-Update downwards compatible HOT 5
- Liquibase Fails to Recognize Schema Names Containing the Letter 'i' in diff-changelog Command" HOT 2
- AbstractUpdateCommandStep.upToDateFastCheck global cache does not detect DB recreation HOT 4
- Databricks on JDK 21 fails with "Object 'DATABASECHANGELOGLOCK' already exists. HOT 5
- RunAlways with runOnChange and preconditions fails on 4.27 HOT 4
- Significant performance degradation after migration from 3.5.3 to 4.26.0 HOT 1
- MSSQL needs a "nullable" statement for indexes on nullable columns HOT 1
- Duplicated dependency `commons-text` - liquibase-core HOT 3
- Liquibase re-running old migrations after update HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liquibase.