Re : Creating a view using code.
It isn't completely clear what you are trying to do. The second syntax is correct. Your first example is incorrect. Steve DoniePrincipal Software EngineerDatical, Inc. http://www.datical.com/
View ArticleRe : Creating a view using code.
Hi Steve,I have a class with 4 fields that is supposed to map to a view. So I need to create that view in my code. I want to create <changeSet author="liquibase-docs" id="createView-example">...
View ArticleRe : Creating a view using code.
OK, if I understand correctly, you are creating the changelog using java code? If so, please understand that yours is a fairly unusual situation. I don't know of anyone else doing that.In that case,...
View ArticleCommit each statement with "Go"
Forgive the SQL newbie here. DBA stated we needed to commit each statement with a GO. It works from TSQL in management studio, just not liquibase. Any help is appreciated. ExampleDrop column table 1...
View ArticleRe : Creating a view using code.
Yes, I did used CreateViewChange.setSelectQuery() and that is what I got in my changeLog:<changeSet author="liquibase-docs" id="createView-example"> <createViewChange catalogName="cat"...
View ArticleRe : Creating a view using code.
Could be a bug. As I said, this is a very non-standard usage, so this use case may not have been tested before. Steve DoniePrincipal Software EngineerDatical, Inc. http://www.datical.com/
View ArticleError using YAML format
Hi, I'm using liquibase 3.5.4 on fedora 26, and I trying to use YAML format but I get this error in a update command:SEVERE 12/04/18 11:53: liquibase:...
View ArticleRe : Error using YAML format
The first thing I would check is the liquibase shell script. It uses or sets a variable LIQUIBASE_HOME - you might add or uncomment some things in that shell script to ensure it is using the locations...
View ArticleRe : Creating a view using code.
I was able to get the desired result using setValue() method of CreateView class.
View ArticleRe : Creating a view using code.
Excellent!Steve DoniePrincipal Software EngineerDatical, Inc. http://www.datical.com/
View ArticleRe : [Solved] Error using YAML format
The problem was in runnig the application from the .jar with the command:java -jar <path-to-liquibase-jar>The liquibase command solve the error.Thanks for the help.
View ArticleLiquibase changing type of primary key
Having generated a changelog on a current database, I have attempted to create a new database from that changelog. After a fair few problems probably related to our database structure, I've come across...
View ArticleRe : [Solved] Error using YAML format
Glad I could point you in the right direction. Steve DoniePrincipal Software EngineerDatical, Inc. http://www.datical.com/
View ArticleLiquibase and several schemas best practices
I am using Liquibase on DB with several schemas. Those schemas has foreign keys to each other.What is a best practise for such use case with Liquibase?Currently migration files are separated in folders...
View ArticleRe : Liquibase changing type of primary key
Hi Adam,it could be that the RDBMS-specific code for that has changed. Can you tell me which RDBMS (PostgreSQL/MariaDB/MSSQL/...) you are using, which Liquibase version the old behaviour showed, and...
View ArticleRe : Liquibase changing type of primary key
Hi Andreas,Thanks for the reply. I'm using MariaDB and the latest version of Liquibase. I'm currently testing Liquibase for use at my place of work so have no previous version. The changelogs are...
View ArticleRe : Liquibase changing type of primary key
Had a look at this again this morning and managed to fix this by changing the columnDataType to SMALLINT(5) UNSIGNED in the addAutoIncrement section. Seems to be working as intended now. Probably user...
View ArticleRe : Liquibase changing type of primary key
Ok, just so that I have a test case I can reproduce the problem with, can you post:1. The CREATE TABLE-Statement of the table (in the state before the change set runs)2. The relevant part of your...
View ArticleRe : How can I disable logging in tests?
Finally figured it out.I had Logback on the classpath, so to disable it I had to set the log level in Logback instead of on the logger instance because the setLogLevel() method in Slf4jLogger no-ops.I...
View Article