Quantcast
Channel: Liquibase Forums
Browsing all 2993 articles
Browse latest View live

sqloutput command preceeds databasechangelog table with current schema name

When I execute the sqloutput command, liquibase 3.2.2 precedes each insert on databasechangelog table with current schema name. INSERT INTO MY_TEST_SCHEMA.DATABASECHANGELOG (ID, AUTHOR, FILENAME,...

View Article


Re : sqloutput command preceeds databasechangelog table with current schema name

It looks like there was a bug with the handling of the ouputDefaultSchemaName=false parameter. That will be fixed with 3.3.0 which I'm trying to get out in the next week. Nathan

View Article


rollbacks not working if Spring starts them even if runInTransaction=false

So, I have a lot of INSERTs that I wanna do inside a Spring-driven JUnit test.  My changesets look like:      < changeSet runInTransaction = "false" author = "me (generated)" id = "1413580824558-29"...

View Article

Re : Strange things with Java 8

It's odd Java 8 would make a difference with the logic knowing TAG is a keyword. I wonder if it's a problem with java 8 not finding the redshift extension correctly?  I assume there isn't a difference...

View Article

MySQL addColumn defaultValue="0"

Create liquibase diff : mysql> create database test1 default character set utf8; Query OK, 1 row affected (0.00 sec) mysql> use test1 Database changed mysql> create table a(id int(10), archive...

View Article


Re : Validation and Output

Thanks for your reply Nathan! I'm trying to make it work, and looks good so far, but I would like to enable the logger, then will be easy to see what i'm doing. But I don't know why I can't see the log...

View Article

Re : Validation and Output

Ok, I just fixed Just if someone want to know the LogFactory should be like this:     private final Logger logger = LogFactory.getInstance().getLog("liquibase");

View Article

Re : Validation and Output

Glad you got it figured out. Thanks for letting us know. Nathan

View Article


Re : MySQL addColumn defaultValue="0"

The easiest approach for now would be to change the generatedChangeLog to use defaultValueNumeric="0" or defaultValueBoolean="false". I'll work on a fix for 3.3 at...

View Article


Re : Validation and Output

I'm almost done, but i would like to know if there is a way to execute a query and get a list of results. I was looking into JdbcExecutor class and i don't have a clear idea how i can do that. I would...

View Article

Re : Validation and Output

The easiest way with JdbcExecutor to query is to use a queryForList() method. If you want to specify the exact SQL, use `executor.queryForList(new RawSqlStatement(YOUR_SQL)` which will return a List of...

View Article

Re : rollbacks not working if Spring starts them even if runInTransaction=false

I think the autocommit setting is the problem. I just put in a fix for 3.3 that correctly handles the autocommit. That may be affecting the runInTransaction as well.  Would you be able to test with the...

View Article

Re : MySQL addColumn defaultValue="0"

thanks!

View Article


MySQL diff - modify index key

mysql> create database test1 default character set utf8; Query OK, 1 row affected (0.00 sec) mysql> create database test2 default character set utf8; Query OK, 1 row affected (0.00 sec) mysql>...

View Article

Re : MySQL diff - modify index key

I created https://liquibase.jira.com/browse/CORE-2096 for the issue. It's a larger change than I'd like to introduce at this point for 3.3 so I pushed it to 3.4. For now, you'll just have to manually...

View Article


liquibase + h2

Please help me. When I use <modifyDataType columnName="column1" newDataType="numeric(3)" tableName="employee"/> or <dropNotNullConstraint tableName="employee" columnName="column1"...

View Article

Re : rollbacks not working if Spring starts them even if runInTransaction=false

@nvoxland: Sorry, that doesn't seem to fix it. :(  (Although there's a chance my environment is messed up.) Also, I'm not sure if runInTransaction is supposed to be "true" or "false" in the case of...

View Article


Re : New Extension: Liquibase Vertica support

Hi All,A new version of my Vertica extension for liquibase is available. The new version supports Vertica 7.1 and liquibase 3.2.2 The extension can be downloaded from the portal:...

View Article

loadUpdateData generating SQL output terminated with /;

loadUpdateData is generating anonymous PL/SQL blocks for each row in order to handle the conditional logic of the insert or update terminated with /; (slash semi-colon).  SQL*Plus doesn't tolerate...

View Article

Re : rollbacks not working if Spring starts them even if runInTransaction=false

Sorry, I didn't read your original question well enough to really understand what you are doing.  The problem you are running into is that after each changeSet, liquibase does a connection.commit(),...

View Article
Browsing all 2993 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>