only pom xml liquibase diff workflow
This commit is contained in:
commit
fc19bca62c
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
diff-changelog
|
||||
*.csv
|
||||
16
changelog-dir-db02-pom/changelog-master.xml
Normal file
16
changelog-dir-db02-pom/changelog-master.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
|
||||
http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||
|
||||
|
||||
|
||||
<includeAll path="changelog-dir-db02-pom/diff-changelog/"/>
|
||||
|
||||
</databaseChangeLog>
|
||||
63
pom.xml
Normal file
63
pom.xml
Normal file
@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>ru.org.pm</groupId>
|
||||
<artifactId>db</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<name>db</name>
|
||||
<description>Test Database</description>
|
||||
<packaging>pom</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<liquibase.version>4.17.0</liquibase.version>
|
||||
<postgresql.version>42.6.0</postgresql.version>
|
||||
<snakeyaml.version>1.32</snakeyaml.version>
|
||||
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<!--JDBC drivers-->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>${postgresql.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-core</artifactId>
|
||||
<version>${liquibase.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-maven-plugin</artifactId>
|
||||
<version>4.17.0</version>
|
||||
<configuration>
|
||||
<changeLogDirectory>changelog-dir-db02-pom/diff-changelog/</changeLogDirectory>
|
||||
<changeLogFile>changelog-dir-db02-pom/changelog-master.xml</changeLogFile>
|
||||
<outputChangeLogFile>changelog-dir-db02-pom/changelog-master.xml</outputChangeLogFile>
|
||||
<diffChangeLogFile>changelog-dir-db02-pom/diff-changelog/liquibase-diffChangeLog-${maven.build.timestamp}.xml</diffChangeLogFile>
|
||||
<changelogSchemaName>liquibase</changelogSchemaName>
|
||||
<defaultSchemaName>public</defaultSchemaName>
|
||||
<driver>org.postgresql.Driver</driver>
|
||||
<username>dbuser01</username>
|
||||
<password>QWEasd759</password>
|
||||
<url>jdbc:postgresql://10.2.5.46:5432/db02-pom</url>
|
||||
<referenceDriver>org.postgresql.Driver</referenceDriver>
|
||||
<referenceUrl>jdbc:postgresql://10.2.5.47:5432/db01-pom</referenceUrl>
|
||||
<referenceUsername>dbuser01</referenceUsername>
|
||||
<referencePassword>QWEasd759</referencePassword>
|
||||
<goal>diff</goal>
|
||||
<dataDir>/data</dataDir>
|
||||
<verbose>true</verbose>
|
||||
<!-- <logging>debug</logging> -->
|
||||
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user