Re : How do I get Liquibase to print out the SQL it generated?
I don't use gradle, but it appears from the documentation that you would do something like this on the command line: gradle updateSql Steve DoniePrincipal Software EngineerDatical, Inc....
View ArticleDrop-create data after each test with SpringLiquibase
I'm using Springliquibase 3.3.2. I read the datas for db in csv files. I have unit tests running with SpringLiquibase and I wanted the database returned to it's initial state after each test run. I'm...
View ArticleInheritable contexts
I've created a pull request for an older feature request that will make it possible for change sets to inherit contexts from the databaseChangeLog, include and includeAll elements. I think this will...
View ArticleCannot pass property using -Dproperty=value
When I try to run Liquibase on the command line passing a property using the -D switch I always get an error: liquibase -Dtable_owner=foo --defaultsFile=connection.properties...
View ArticleRe : Cannot pass property using -Dproperty=value
I think you need to specify the parameters after the "update" command, so: liquibase --defaultsFile=connection.properties --changeLogFile=changelog.xml update -Dtable_owner=foo
View ArticleRe : Cannot pass property using -Dproperty=value
Thanks for the answer. I did try that and also got an error - but that was unrelated to my commandline. My properties file contained a line "table_owner: foo" which caused the error. Passing -D after...
View ArticleRe : Can I add changelog property to liquibase.properties file?
I had the same requirement, and after looking at the source code, I found out that this is possible if the property key is prefixed with "parameter": #Liquibase.properties driver:...
View ArticleLiquibase problems with converting TINYINT(1) to BIT
Deciding to treat TINYINT as BIT seems not to be working. Liquibase: Data truncation: Data too long for column 'LOCKED' at row 1 [Failed SQL: INSERT INTO hgigoc.databasechangeloglock (ID, LOC KED,...
View ArticleLiquibase unknown database error.
Hi , I am using liquibase 3.4.1 but I got one issue regarding database , my database name is combination of small & capital letters. While running liquibase update it is showing unknown database...
View Articleslash / after plsql block in sql script included by sqlFile tag
A lot of tools like Toad generates pl/sql scripts with slash after pl/sql blocks. But liquibase adds ; after slash and after compilation object is invalid. Shouls I always manually remove slash? Is...
View ArticleRe : How to add JSONB columns for PostgreSQL?
Just use jsonb as the type: <column name="doc" type="jsonb"/>
View ArticleRe : slash / after plsql block in sql script included by sqlFile tag
The following works fine for me: * only put one procedure into one SQL file. * end the procedure definition with a / on a single line. Then use the <sqlFile> tag to run the script and define the...
View ArticleincludeAll not working for multimodule project with spring
As in title. If i place changelogs in module different than the one launched with application context includeAll is not working when i run application from jar file. Everything works fine if i run...
View ArticleRe : Liquibase unknown database error.
Several databases do things like that - automatically convert the case of all table names, etc. written to the database to either uppercase or lowercase, and then similarly convert queries to all...
View ArticleRe : Liquibase unknown database error.
Several databases do things like that - automatically convert the case of all table names, etc. written to the database to either uppercase or lowercase This is required by the SQL standard: unquoted...
View ArticleUnable to generate offline migration script for PostgreSQL database
Hi I would like to use Liquibase to generate offline SQL migration scripts for one of my projects and have encountered an issue when creating scripts for PostgreSQL databases. The entry in the plugins...
View ArticleRe : Unable to generate offline migration script for PostgreSQL database
It appears that this is a bug in the liquibase.database.core.PostgresDatabase class. Most of the other implementations of getConnectionSchemaName() in the Database classes start with a check for an...
View ArticleNew utility for testing your Liquibase changelog using H2 and JUnit
Hi everyone! Some time ago I release an initial version of a new JUnit @Rule that makes it easier to test your DB integration code by setting up an in-memory H2 database to use in your test (see...
View ArticleSQL scripts should have "USE " in the header on SQL Server
Hello, there is a ticket for this topic https://liquibase.jira.com/browse/CORE-2451. This was merged and released in 3.4.1, but I think this should be optional. We use Liquibase to generate SQL and we...
View ArticleLiquibase spring bean "log" property
Hi, I've currently managed to configure my Spring application to work with liquibase in a way that it runs the update command whenever I start the application. The problem is that I'd like to be able...
View Article