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

Liquibase to add index for foreign key for postgres

Hi,I'd like to have liquibase to automatically add indexes for all foreign keys created via <addForeignKeyConstraint /> statements.We use MySQL and PostgreSQL, and for MySQL this is done by...

View Article


Re : Invalid character

Can you open the file in something like Notepad++ and see what encoding the file actually is in? The header might say UTF-8, but that may or may not be correct.The question marks interspersed in the...

View Article


Liquibase generates columns with the same name (Sybase)

I have a DB in sybase and I have some tables with the same name but with a capital letter (fruit and fruiT), as well as views with the same name as the tables (Fruit), When I generate the XML with the...

View Article

CustomtaskChange passing a parameter

I am using a customtaskchange and would like to be able to a pass a parameter to the class, is this possible. I want to be bale to have single task that can take a different value for processing, so a...

View Article

Re : CustomtaskChange passing a parameter

Hi aorb38,it is as simly as adding a property to your implementation class (wich implements CustomSqlChange or CustomTask).public class CustomTask implements CustomTaskChange { private String...

View Article


Re : CustomtaskChange passing a parameter

Hi DanielThanks for that,  I had created the method but It was passing the parameters to the methods, is having the difficulty with.John

View Article

Re : CustomtaskChange passing a parameter

Hi John,I'm not sure if I get it right. Do you mean that the parameters are not set into your CustomChange class?Do you have any more information? Is there a error if you enable logging?Can you...

View Article

Re : CustomtaskChange passing a parameter

Hi DanielJust tried the command and it is not working, public class TableSiteGUID implements liquibase.change.custom.CustomTaskChange {    private String table;    public void SetTableName(String...

View Article


Change to primaryKeyExists precondition

In liquibase 3.4.2, this worked:- changeSet:    id: 1450270295661-5    author: blah    preConditions:        onFail: MARK_RAN        not:            primaryKeyExists:                primaryKeyName:...

View Article


Possible to run tasks from Java?

I'm wondering if it's possible to just run tasks such as these directly from Java using classes instead of having to utilize ANT, Commandline or something else?dbDocgenerateChangeLogupdate

View Article

Re : Possible to run tasks from Java?

Yes, this is totally possible. That is what we have done at Datical - we have written an Eclipse-RCP based GUI as well as an Eclipse command line that wrap and extend Liquibase. You can get some idea...

View Article

Re : Possible to run tasks from Java?

Thank you for the assist, I'll take a look in that location.

View Article

How to configure alternate liquibase control tables (DATABASECHANGELOG &...

Following the inputs from the below forum, system properties were specified and customized names for DATABASECHANGELOG & DATABASECHANGELOGLOCK tables were used & setup (on liquibase update...

View Article


Dealing with alters to big tables coming through different change sets

Hi,We recently adopted liquibase and it has greatly simplified the task of getting DB in sync with code. However we might have a problem in using liquibase in production. The issue in automating the...

View Article

How to generate xml file from databaseChangeLog object

Any tips how to generate the xml file based on a databaseChangeLog object from java.

View Article


Re : How to generate xml file from databaseChangeLog object

Answered here

View Article

Rollback multiple Update

We are running liquibase version 3.5 with Oracle. We are unable to perform rollbacks in liquibase ,against multiple update/insert operation in a single changesets.   Scenario is that we have list of...

View Article


Re : Bug fix for CORE-2944

Still no feedback :( Is there any chance to review and incorporate the fix in a reasonable timeframe?

View Article

[Spring Boot + JPA/Hibernate + Liquibase Core dependency] Can Liquibase track...

Can Liquibase track changes done on Entity classes, that is, if I add a column to an entity class - can Liquibase generate a changeset and apply it to my database?If yes, can you please provide some...

View Article

How to generate rename column instead of drop column

Hi there,I'm new with Liquibase. I have researched on that case but still stuck.Environment+ Database: PostgreSQL 9.6 on Ubuntu + SOURCEtable t1 ( ab int, b int) -- 0 rowtable t2 ( a int , b int) -- 0...

View Article
Browsing all 2993 articles
Browse latest View live


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