liquidbase changelogs converted to yaml
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
|
||||
<changeSet author="jakubpilimon" id="1.init">
|
||||
<createSequence sequenceName="hibernate_sequence" startValue="1" incrementBy="1" cacheSize="1"/>
|
||||
</changeSet>
|
||||
<changeSet author="jakubpilimon" id="2.postgres.json" dbms="postgresql" failOnError="false">
|
||||
<sql>CREATE CAST (VARCHAR AS jsonb) WITH INOUT AS ASSIGNMENT</sql>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
21
adapter-commons/src/main/resources/schema/commons.yml
Normal file
21
adapter-commons/src/main/resources/schema/commons.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
databaseChangeLog:
|
||||
|
||||
- changeSet:
|
||||
id: 1.hibernate.init
|
||||
author: Michal Michaluk
|
||||
changes:
|
||||
- createSequence:
|
||||
sequenceName: hibernate_sequence
|
||||
startValue: 1
|
||||
incrementBy: 1
|
||||
cacheSize: 1
|
||||
|
||||
- changeSet:
|
||||
id: 2.postgres.json
|
||||
author: Michal Michaluk
|
||||
dbms: postgresql
|
||||
failOnError: false
|
||||
changes:
|
||||
- sql: CREATE CAST (VARCHAR AS JSONB) WITH INOUT AS ASSIGNMENT
|
||||
rollback:
|
||||
- sql: DROP CAST (VARCHAR AS JSONB)
|
||||
@@ -6,8 +6,7 @@ spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_ON_EXIT=FALSE
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=sa
|
||||
spring.datasource.driver-class-name=org.h2.Driver
|
||||
|
||||
spring.liquibase.change-log=classpath:/schema/db.changelog.xml
|
||||
spring.liquibase.change-log=classpath:/schema/db.changelog.yml
|
||||
|
||||
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n
|
||||
logging.level.org.hibernate.SQL=debug
|
||||
|
||||
Reference in New Issue
Block a user