final pom.xml

This commit is contained in:
pashko 2024-05-02 19:50:29 +08:00
parent 387629caee
commit aba194e067
6 changed files with 69 additions and 7 deletions

25
.env
View File

@ -0,0 +1,25 @@
GROUPID=ru.corp.tn.ecm-liquibase
ARTIFACTID=liquibase
VERSION=1.0.0
DESCRIPTION=Ecm liquibase migration
LIQUIBASE.VERSION=4.17.0
POSTGRESQL.VERSION=42.6.0
SNAKEYAML.VERSION=1.32
CHANGELOGDIRECTORY=changelog-dir/diff-changelog/
CHANGELOGFILE=changelog-dir/changelog-master.xml
OUTPUTCHANGELOGFILE=changelog-dir/changelog-master.xml
DIFFCHANGELOGFILE=changelog-dir/diff-changelog/liquibase-diffChangeLog-${maven.build.timestamp}.xml
CHANGELOGSCHEMANAME=liquibase
DRIVER=org.postgresql.Driver
USERNAME=dbuser01
PASSWORD=QWEasd759
URL=jdbc:postgresql://10.2.5.46:5432/db02-pom #destination DB
REFERENCEDRIVER=org.postgresql.Driver
REFERENCEURL=jdbc:postgresql://10.2.5.47:5432/db01-pom #source DB
REFERENCEUSERNAME=dbuser01
REFERENCEPASSWORD=QWEasd759
DATADIR=changelog-dir/diff-changelog/data

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
diff-changelog
*.csv
*.sql

View File

@ -9,8 +9,10 @@
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">
<!-- <changeSet author="" dbms="postgresql" id="1713864000000-1">
<sqlFile path="changelog-dir/my_function.sql" splitStatements="false"/>
</changeSet> -->
<includeAll path="changelog-dir/diff-changelog/"/>
</databaseChangeLog>

View File

@ -0,0 +1,17 @@
<?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">
<changeSet author="root (generated)" id="1714121938826-1">
<createTable tableName="UserHelpModel">
<column name="Attachment" type="JSONB"/>
<column name="Author" type="JSONB"/>
<column name="UploadDateTime" type="JSONB"/>
<column name="CreationTime" type="JSONB">
<constraints nullable="false"/>
</column>
<column name="IsHidden" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column defaultValueComputed="&quot;{0001-01-01T00:00:00+00:00}&quot;" name="ModifyTime" type="JSONB"/>
</createTable>
</changeSet>
</databaseChangeLog>

View File

@ -0,0 +1,17 @@
<?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">
<changeSet author="root (generated)" id="1714140572470-1">
<createTable tableName="UserHelpModel">
<column name="Attachment" type="JSONB"/>
<column name="Author" type="JSONB"/>
<column name="UploadDateTime" type="JSONB"/>
<column name="CreationTime" type="JSONB">
<constraints nullable="false"/>
</column>
<column name="IsHidden" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column defaultValueComputed="&quot;0001-01-01T00:00:00+00:00&quot;" name="ModifyTime" type="JSONB"/>
</createTable>
</changeSet>
</databaseChangeLog>

10
pom.xml
View File

@ -11,8 +11,8 @@
<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>
<liquibase.version>4.27.0</liquibase.version>
<postgresql.version>42.7.3</postgresql.version>
<snakeyaml.version>1.32</snakeyaml.version>
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
</properties>
@ -34,12 +34,12 @@
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>4.17.0</version>
<version>4.27.0</version>
<configuration>
<changeLogDirectory>changelog-dir/diff-changelog/</changeLogDirectory>
<changeLogFile>changelog-dir/changelog-master.xml</changeLogFile>
<!-- <changeLogDirectory>changelog-dir/</changeLogDirectory> -->
<outputChangeLogFile>changelog-dir/changelog-master.xml</outputChangeLogFile>
<diffChangeLogFile>changelog-dir/diff-changelog/liquibase-diffChangeLog-${maven.build.timestamp}.xml</diffChangeLogFile>
<diffChangeLogFile>changelog-dir/diff-changelog/liquibase-diffChangeLog-${maven.build.timestamp}.sql</diffChangeLogFile>
<changelogSchemaName>liquibase</changelogSchemaName>
<defaultSchemaName>public</defaultSchemaName>
<driver>org.postgresql.Driver</driver>