liquibase

Liquibase Hibernate Plugin Does Not Work

ε祈祈猫儿з 提交于 2019-12-05 07:06:23
As described here ( https://github.com/liquibase/liquibase-hibernate/issues/74 ) I'm having an issue getting the liquibase-hibernate extension to work properly. I think I have everything setup, but it seems like I keep running into weird problems. I feel like I'm missing something simple, but I think I've followed all the instructions as provided. I'm using liquibase 3.3.2, Hibernate 4.3.0.Final, java 1.7.0_71 and the liquibase-hibernate4-3.5.jar. My CLASSPATH environmental variable is empty, but some stuff gets added to it by the liquibase shell script. When I'm using normal liquibase

Liquibase changelog parameters in liquibase.properties

ε祈祈猫儿з 提交于 2019-12-05 06:37:29
As per documentation parameter values are looked up in the following order: Passed as a parameter to your Liquibase runner (see Ant, command_line, etc. documentation for how to pass them) As a JVM system property In the parameters block ( Tag) of the DatabaseChangeLog file itself. Can I set these parameters in the standard properties file? It is possible to put changelog parameters in liquibase.properties, or a custom --defaultsFile. Reading the source indicates that you must prefix the properties with "parameter." . Your error probably looks something like this: SEVERE 11/4/16 10:26 AM:

Create function from SQL script by Liquibase

蓝咒 提交于 2019-12-05 06:30:06
Project configuration: data base - MySQL 5.7 orm - Hibernate 4.3.11.Final / JPA 1.3.1.RELEASE Liquibase 3.4.2 My problem dont exist when i run script from workBeanch only from Liquibase. <changeSet author="newbie" id="function_rad2deg" dbms="mysql,h2"> <sqlFile encoding="utf8" path="sql/function_rad2deg.sql" relativeToChangelogFile="true" splitStatements="false" stripComments="false"/> </changeSet> My sql script looks like this: DROP FUNCTION IF EXISTS rad2deg; DELIMITER // CREATE FUNCTION rad2deg(rad DOUBLE) RETURNS DOUBLE BEGIN RETURN (rad * 180 / PI()); END // DELIMITER ; Ok and log:

How to create liquibase changeset for integration tests in springboot?

喜夏-厌秋 提交于 2019-12-05 06:18:11
I want mock data for integration tests by liquibase changeset, how to make that to not affect real database? I found partial idea from here , but I am using springboot and I hope there is simpler solution. Hi you can use liquibase's context parameter. For example create changeset which will have inserts loaded from sql file and specify the context for it. something like this: <changeSet id="test_data_inserts" author="me" context="test"> <sqlFile path="test_data.sql" relativeToChangelogFile="true" /> </changeSet> and in spring boot application.properties for test specify property liquibase

Liquibase preconditions: How do I check for a column being non-nullable?

泄露秘密 提交于 2019-12-05 04:44:15
I have a db upgrade script to remove the non-null constraint on a column. I want to do a precondition check, and call ALTER TABLE only when it is non-null. The master.xml script is a progressive one where I keep adding scripts and the entire thing runs everytime. After the first time my Alter Table script has run, I do not want it to be run again. Couldn't find a predefined precondition for this, and could not write an sqlcheck either. Can be done with sqlCheck. For MySql <preConditions onFail="MARK_RAN" onError="CONTINUE"> <sqlCheck expectedResult="NO"> SELECT is_Nullable FROM INFORMATION

一、什么是Spring Boot Admin ?

放肆的年华 提交于 2019-12-05 04:22:47
Spring Boot Admin是一个开源社区项目,用于管理和监控SpringBoot应用程序。 应用程序作为Spring Boot Admin Client向为Spring Boot Admin Server注册(通过HTTP)或使用SpringCloud注册中心(例如Eureka,Consul)发现。 UI是的Vue.js应用程序,展示Spring Boot Admin Client的Actuator端点上的一些监控。服务端采用Spring WebFlux + Netty的方式。Spring Boot Admin为注册的应用程序提供以下功能: 显示健康状况 显示详细信息,例如 JVM和内存指标 micrometer.io指标 数据源指标 缓存指标 显示构建信息编号 关注并下载日志文件 查看jvm system-和environment-properties 查看Spring Boot配置属性 支持Spring Cloud的postable / env-和/ refresh-endpoint 轻松的日志级管理 与JMX-beans交互 查看线程转储 查看http-traces 查看auditevents 查看http-endpoints 查看计划任务 查看和删除活动会话(使用spring-session) 查看Flyway / Liquibase数据库迁移 下载heapdump

logging not working in liquibase 3.6.1 using loglevel=debug

不羁岁月 提交于 2019-12-05 03:26:24
I have used --logLevel=debug from command line with liquibase 3.6.1 and I don't see any debug output being generated. Has anyone used 3.6.1 and got this working? Below is the output I get after executing liquibase command. Starting Liquibase at Tue, 03 Jul 2018 14:07:10 EDT (version 3.6.1 built at 2018-04-11 08:41:04) Liquibase: Update has been successful. The issue has been reported https://liquibase.jira.com/browse/CORE-3220 and there's a pending PR for the fix: https://github.com/liquibase/liquibase/pull/770 Right now you can downgrade the liquibase core version to 3.5.5 , it will resolve

Liquibase generate changelog from JPA entities

依然范特西╮ 提交于 2019-12-05 03:09:16
I have a Spring boot, spring data jpa project with a parent and three children modules. One of my modules is responsible for my JPA entities. I need generate one xml changelog with liquibase from this entities. In my liquibase.properties i have the code: changeLogFile=src/main/resources/db/changelog/db.changelog-master.xml url=jdbc:mysql://localhost:3306/test username=root password=root driver=com.mysql.jdbc.Driver outputChangeLogFile=src/main/resources/db/outputChangeLog/liquibase-outputChangeLog.xml referenceUrl=hibernate:spring:br.com.company.vacation.domain?dialect=org.hibernate.dialect

Adding a non-nullable column to existing table fails. Is the “value” attribute being ignored?

匆匆过客 提交于 2019-12-05 01:56:58
Background: we have a Grails 1.3.7 app and are using Liquibase to manage our database migrations. I am trying to add a new column to an existing table which is not empty. My changeset looks like this: changeSet(author: "someCoolGuy (generated)", id: "1326842592275-1") { addColumn(tableName: "layer") { column(name: "abstract_trimmed", type: "VARCHAR(455)", value: "No text") { constraints(nullable: "false") } } } Which should have inserted the value 'No text' into every existing row, and therefore satisfied the not null constraint. Liquibase "Add Column" docs . But when the migrations changesets

Liquibase + Hibernate ORM 5.0

给你一囗甜甜゛ 提交于 2019-12-05 00:57:00
问题 I'm about to migrate to Hibernate ORM 5.0 and I would like to use Liquibase in my project too. The Liquibase Hibernate Extension mentions liquibase-hibernate4 for Hibernate 4.3+ support. Is there anyone using Liquibase and Hibernate ORM 5.0? I want to make sure that there are no issues in Liquibase with the new Hibernate version. 回答1: Update : on 24-Oct-2016 @nvoxland released liquibase-hibernate5 3.6. Here is the closed issue at GitHub: Issue #96. I can finally say that the current Liquibase