Re : liquibase + h2
Unfortunately that was an issue with the SQL generated through Liquibase 3.2.2. There is a fix for 3.3.0 (out very soon) that should resolve it. Without updating for 3.3.0, you'll have to switch to a...
View ArticleRe : rollbacks not working if Spring starts them even if runInTransaction=false
Thanks, Nathan! Would you entertain a "do not commit" patch? If not, that's OK, I just won't bother submitting one. :)
View ArticleRe : Validation and Output
I already have a solution for that I would like to share with you guys, maybe is useful for someone. Java Class /** * CustomBuildCheck Precondition * <customPrecondition...
View ArticleError executing SQL --rollback drop table test: Invalid SQL type: sqlKind =...
Hi, I am trying to execute following changeset using liquibase: --liquibase formatted sql --changeset create_table:001 create table test ( id int primary key, name varchar(255) ); --rollback...
View ArticleRe : Compability issues between master of liquibase-core and liquibase-hibernate
I was looking at this problem again and as far as I can see liquibase-hibernate still depends on liquibase-core 3.2.0 as can be seen in...
View Articlejunit compile scope
liquibase-core-3.3.0 depends on junit: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>compile</scope></dependency> Is it...
View ArticleRe : rollbacks not working if Spring starts them even if runInTransaction=false
I wouldn't pull one into the main Liquibase repo since it I think it would be an edge case for people, but it would make a good extension. I currently have liquibase.org/extensions as a place to...
View ArticleRe : Error executing SQL --rollback drop table test: Invalid SQL type:...
I'm not seeing it with 3.3.0, and possibly remember it being addressed with that version. Can you update and see if that fixes the problem? Nathan
View ArticleRe : junit compile scope
It currently is because there are portions of the "production" code that can be used by extension writers as starting points for testing their extensions. For normal use, junit isn't a runtime...
View ArticleRe : Liquibase 2.0.5 does not seem to commit between changesets against MySQL...
I have the same problem and it happens every time a changelog contains a ChangeSet that creates a new table with foreign key constraints and one or more other ChangeSet(s) that use...
View ArticleMySQL 5.6 keywords `partition' not quoted as a column name
I am trying to upgrade my liquibase to 3.3.0 If the column contains a keyword, such as "PARTITION". the migration fails. e.g. the generated SQL DDL contains: PARTITION VARCHAR(20) NOT NULLbecause...
View ArticleRe : Error executing SQL --rollback drop table test: Invalid SQL type:...
Hi Nathan, It was silly mistake from my end, was trying to call formatted sql having this in my changelog.xml <sqlFile path = "ddl/myfile.sql" />. The correct syntax is <include...
View ArticleRe : Formatted SQL with a comment.
Hi Nathan, I checked the jira ticket related to this, it seems it has been fixed in liquibase version 3.2.0, however I am not able to add comment via my formatted sql. Any ideas/sugestions? Here's how...
View ArticleLabels vs. contexts in 3.3.0
While I understand the gist behind labels and contexts, I'd like to hear about the use cases that caused this feature to exist. Also, are they documented on the main site? I'm not sure where I can put...
View ArticleWhat is the ResourceAccessor#list() method used for?
Hello; I would like to know what the ResourceAccessor#list(String, String, boolean, boolean, boolean) method is used for. I am curious because I have written a URLResourceAccessor. I am unsure whether...
View ArticleRe : Labels vs. contexts in 3.3.0
I added http://blog.liquibase.org/2014/11/contexts-vs-labels.html for some additional background. Labels can be added to changeSets the same as contexts. The concrete use case behind adding labels...
View ArticleRe : Labels vs. contexts in 3.3.0
Thanks. That's interesting. Viewed from a really high level, both are ways of dynamically whittling a changelog down at runtime. My concrete use case is locale-specific changesets. Picture an...
View ArticleRe : Labels vs. contexts in 3.3.0
Yes, at a high level that is what they both do. I think contexts would make the most sense in your case because at runtime the description of the environment is just a simple list of the languages you...
View ArticleRe : What is the ResourceAccessor#list() method used for?
I think it is only used with includeAll, so if you cannot list all it's contents you won't be able to use includeAll. Otherwise it should be fine to return null. Nathan
View Article