Quantcast
Channel: Liquibase Forums
Viewing all 1169 articles
Browse latest View live

Re : Semantics of ignoreClasspathPrefix

$
0
0
Yes, it would be best to strip out the classpath: prefix before saving it. I created https://liquibase.jira.com/browse/CORE-2766 to track fixing that. 

For now, the easiest approach may be to add a <changeSet runAlways="true" runOrder="last"> with an <sql> tag that updates databasechangelog to strip off the "classpath:".

Nathan

Re : Checksum calculations and line ending styles

$
0
0
It has done that for years so don't know the exact version.

Is there a particular changeSet you are seeing problems with in a recent version?

Nathan

Re : Extending Liquibase CreateTableStatement

$
0
0
I tried setting it higher, but still the same result.

I'm going to try and maybe get it up on github, I'm not sure what else to try.

Re : Semantics of ignoreClasspathPrefix

$
0
0
Thanks Nathan.  That's a creative workaround.

Alex

Re : Checksum calculations and line ending styles

$
0
0
The code I'm working on is using version 2.0.5 (pretty old).  I just finished migrating our code to GIT.  When I first tried using the code in Git, the problem showed up.  I'm just going to start use the latest version.

Re : Extending Liquibase CreateTableStatement

Re : loadUpdateData problem

$
0
0
I would rather use the regExpReplace and remove the last '/' like below.

<modifySql>
<regExpReplace replace="/$" with=""/>
</modifySql>

The 'replace' sub-tag changes all occurrences of the '/', including in the data that you want to upload.


Failed to run stored procedure whithin changeset for VoltDB

$
0
0
Hi.

I recently started developing an extension that adds support for VoltDB(https://github.com/diorman/liquibase-voltdb). So far it only supports changes using plain SQL.

I'm currently having a bad time trying to run a stored procedure. I've tried taking approaches from following threads but none of them seem to work in my case


My current guess is that the procedure call is being interpreted as a SQL statement instead of a callable statement. Here's an example of a procedure call using JDBC in VoltDB https://github.com/VoltDB/voltdb/blob/master/examples/voter/client/voter/JDBCBenchmark.java#L350-L362

What I'm trying to do:

<changeSet id="1" author="diorman" runAlways="true">
<sql><![CDATA[
call TESTPROC()
]]></sql>
</changeSet>

Am I missing something in the extension to support this? I just ran out of ideas

Thank you in advance

Diorman Colmenares

Liquibase 3.5.1 changes from 3.4.2

$
0
0
Is there a document anywhere that lists all the changes made since version 3.4.2?

--Stewart McGuire

Re : Liquibase 3.5.1 changes from 3.4.2

includeAll doesn't function in 3.5.1

$
0
0
Hi!

I'm using liquibase 3.4.2, after upgrading to 3.5.1 i get below error. I have checked a little bit i get this problem because i use includeAll in master.xml.

Unexpected error running Liquibase: Unknown Reason

SEVERE 6/8/16 12:45 PM: liquibase: Unknown Reason
liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException
    at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27)
    at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229)
    at liquibase.Liquibase.update(Liquibase.java:202)
    at liquibase.Liquibase.update(Liquibase.java:192)
    at liquibase.integration.commandline.Main.doMigration(Main.java:1126)
    at liquibase.integration.commandline.Main.run(Main.java:184)
    at liquibase.integration.commandline.Main.main(Main.java:103)
Caused by: liquibase.exception.SetupException
    at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:445)
    at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:349)
    at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282)
    at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25)
    ... 6 more
Caused by: java.lang.NullPointerException
    at liquibase.resource.FileSystemResourceAccessor.convertToPath(FileSystemResourceAccessor.java:99)
    at liquibase.resource.AbstractResourceAccessor.getContents(AbstractResourceAccessor.java:90)
    at liquibase.resource.FileSystemResourceAccessor.list(FileSystemResourceAccessor.java:86)
    at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40)
    at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:422)
    ... 9 more




Regards
Raste

Re : includeAll doesn't function in 3.5.1

How do you run a specific changeset from command line using labels?

$
0
0
I tried to use labels to run a specific changeSet. But the problem I am having is it runs other changeSets as well which do not have any labels assigned. Is there a way around it ? I am open to using a context too but the main criteria is that other changeSets should not be forced to specify either a label or context. 

I tried setting the root node with a default context . But in this case when I specify the specific context from the changeSet I want to run in the command line, none of the changeSets are executed. 

Re : How do you run a specific changeset from command line using labels?

$
0
0
The only way to accomplish what you want would be to apply some label to all the changesets that do not have any labels yet. You might label everything with "base" for example. This is by design and unlikely to change, because changing it would break so many other workflows.

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Re : How do you run a specific changeset from command line using labels?

$
0
0
Thank you for responding. I added context to all my changeSets so I can filter them. 

Re : BUG? - loadData on MySQL with 51 rows fails

$
0
0
The commit comment says that a fix was added for 3.4.x versions, and JIRA indicates it was fixed in 3.4.2. Can you try with a more recent version? Otherwise, I would file a new JIRA with a reproducible test case.

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Independent changelogs for independent tables

$
0
0
Hi All,

I'm fairly new to liquibase, and I'm having a bit of trouble figuring out the best way to accomplish something.

I have a whole bunch of microservices, each of which has its own database in a shared postgres server with its own tables. This is easy, Liquibase can manage the DB for each microservice with a changelog file for each one.

I now have to merge all these tables into a single database managed by some cranky DBA's, but I would like to avoid having one giant liquibase changelog which controls the table structure for a whole bunch of completely independent, unrelated things, even though they have to live in the same database.

It looks like the changelog file is really meant to manage all of the tables within a single database. 

Is there a way for me to have a separate changelog for each microservice which only affects the tables for that specific microservice? All the tables are standalone, with no foreign keys or anything like that, and each microservice isn't aware of the existence of the other tables.

Thanks in advance for any tips!

MS SQL with GoCD and Integrated Security

$
0
0
Hi,

I am trying to get my Liquibase running on a Windows agent using Integrated security, as SQL user account are not allowed .  

I do not want to run the agent as the user as we will have different users for different database's.
Is there a way I can use Liquibase connection string or any settings to impersonate a user?

I am using SQL JDBC4.


sql formatted rollback to changeSet that originally created a statement.

$
0
0
Hello!

I wonder if it is possible to add this functionality to sql formatted xml.

Regards
Raste

 

ValidationFailedException after upgrade from 3.5.0 to 3.6.0-SNAPSHOT

$
0
0
Hi,

we are using Liquibase to reverse engineer DB2 production databases and deliver them as H2 databases for unit testing. After the upgrade from 3.5.0 to 3.6.0-SNAPSHOT we cannot load the generated change log into a H2 database anymore. The following error occurs:

liquibase.exception.ValidationFailedException

Validation Failed:

     779 changes have validation failures

          forIndexName is not allowed on h2, db.changelog.xml::1466531045768-821::OWNER

          forIndexName is not allowed on h2, db.changelog.xml::1466531045768-822::OWNER

          ...


How can we fix that? H2 does not support that feature, ok. But why throw an Exception. Wouldn't a warning be enough?

Cheers,
Markus

Viewing all 1169 articles
Browse latest View live


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