mirror of
https://gitlab01.pm.org.ru/tnt/liquibase/liquibase-maven.git
synced 2026-01-12 09:24:47 +08:00
Initial commit
This commit is contained in:
commit
0f439b6faa
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.m2
|
||||||
|
_m2
|
||||||
|
tmp
|
||||||
|
master.xml
|
||||||
|
diff.xml
|
||||||
8
dev/data/developers.csv
Normal file
8
dev/data/developers.csv
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
"id","name","email","is_active","group_id","cv"
|
||||||
|
"4","Qadir","qadir@sendel.ru","true","NULL","{""companies"": [{""name"": ""itDEW"", ""startDate"": ""2017-02-11""}]}"
|
||||||
|
"11","Boris","boris@sendel.ru","true","NULL","NULL"
|
||||||
|
"2","Ivan","ivan@sendel.ru","true","1","{""companies"": [{""name"": ""itDEW"", ""startDate"": ""2019-02-01""}]}"
|
||||||
|
"3","Victor","victor@sendel.ru","true","1","{""companies"": [{""name"": ""solanas"", ""startDate"": ""2016-02-11""}]}"
|
||||||
|
"5","Rajesh","rajesh@sendel.ru","true","4","{""companies"": [{""name"": ""Guargon"", ""startDate"": ""2016-02-11""}]}"
|
||||||
|
"6","Konstantin","konstantin@sendel.ru","true","4","{""companies"": [{""name"": ""GRAO"", ""startDate"": ""2011-05-10""}]}"
|
||||||
|
"10","Nikita","nikita@sendel.ru","true","3","NULL"
|
||||||
|
4
dev/data/groups.csv
Normal file
4
dev/data/groups.csv
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
"id","name","leader_id"
|
||||||
|
"1","Fintech","2"
|
||||||
|
"3","Telecom","10"
|
||||||
|
"4","Logistic","11"
|
||||||
|
14
dev/data/lang_to_developers.csv
Normal file
14
dev/data/lang_to_developers.csv
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
"language_id","developer_id"
|
||||||
|
"1","6"
|
||||||
|
"1","3"
|
||||||
|
"2","6"
|
||||||
|
"3","6"
|
||||||
|
"1","10"
|
||||||
|
"1","11"
|
||||||
|
"2","5"
|
||||||
|
"5","5"
|
||||||
|
"8","2"
|
||||||
|
"10","4"
|
||||||
|
"5","4"
|
||||||
|
"7","3"
|
||||||
|
"6","3"
|
||||||
|
11
dev/data/languages.csv
Normal file
11
dev/data/languages.csv
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
"id","name","shortname"
|
||||||
|
"1","Java","NULL"
|
||||||
|
"2","JavaScript","js"
|
||||||
|
"3","Python","py"
|
||||||
|
"4","Kotlin","kt"
|
||||||
|
"5","C#","NULL"
|
||||||
|
"6","C","NULL"
|
||||||
|
"7","C++","NULL"
|
||||||
|
"8","R","NULL"
|
||||||
|
"9","F","NULL"
|
||||||
|
"10","GoLang","go"
|
||||||
|
7
dev/liquibase.properties
Normal file
7
dev/liquibase.properties
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
username=dbuser01
|
||||||
|
password=QWEasd759
|
||||||
|
url=jdbc:postgresql://10.2.5.47:5432/db01
|
||||||
|
driver=org.postgresql.Driver
|
||||||
|
classpath=/opt/liquibase/postgresql-42.6.0.jar
|
||||||
|
changeLogFile=master.xml
|
||||||
|
liquibaseSchemaName=liquibase
|
||||||
132
pom.xml
Normal file
132
pom.xml
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
<?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>
|
||||||
|
<logback.version>1.2.13</logback.version>
|
||||||
|
<slf4j.version>1.7.36</slf4j.version>
|
||||||
|
<liquibase.version>4.17.0</liquibase.version>
|
||||||
|
<postgresql.version>42.6.0</postgresql.version>
|
||||||
|
<snakeyaml.version>1.32</snakeyaml.version>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<!--Logging-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
<version>${slf4j.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>log4j-over-slf4j</artifactId>
|
||||||
|
<version>${slf4j.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>jcl-over-slf4j</artifactId>
|
||||||
|
<version>${slf4j.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-classic</artifactId>
|
||||||
|
<version>${logback.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!--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>${liquibase.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<propertyFile>${profile.propertyFile}</propertyFile>
|
||||||
|
<changeLogFile>${profile.changeLogFile}</changeLogFile>
|
||||||
|
<dataDir>${profile.dataDir}</dataDir>
|
||||||
|
<!-- log -->
|
||||||
|
<verbose>${profile.verbose}</verbose>
|
||||||
|
<logging>${profile.logging}</logging>
|
||||||
|
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<!-- Development settings, -Denv=dev -->
|
||||||
|
<profile>
|
||||||
|
<id>dev</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>env</name>
|
||||||
|
<value>dev</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<!-- <profile.propertyFile>dev/liquibase.properties</profile.propertyFile> -->
|
||||||
|
<changeLogFile>dev/master.xml</changeLogFile>
|
||||||
|
<driver>org.postgresql.Driver</driver>
|
||||||
|
<username>dbuser01</username>
|
||||||
|
<password>QWEasd759</password>
|
||||||
|
<url>jdbc:postgresql://10.2.5.47:5432/db01</url>
|
||||||
|
<referenceDriver>org.postgresql.Driver</referenceDriver>
|
||||||
|
<referenceUrl>jdbc:postgresql://10.2.5.46:5432/db01</referenceUrl>
|
||||||
|
<referenceUsername>dbuser01</referenceUsername>
|
||||||
|
<referencePassword>QWEasd759</referencePassword>
|
||||||
|
<goal>diff</goal>
|
||||||
|
<dataDir>dev/data</dataDir>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<logging>debug</logging>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
<!-- Production settings, -Denv=prod -->
|
||||||
|
<!-- <profile>
|
||||||
|
<id>prod</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>env</name>
|
||||||
|
<value>prod</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<activation>
|
||||||
|
<configuration>
|
||||||
|
<properties>
|
||||||
|
<profile.propertyFile>prod/liquibase.properties</profile.propertyFile>
|
||||||
|
<changeLogFile>dprod/master.xml</changeLogFile>
|
||||||
|
<driver>org.postgresql.Driver</driver>
|
||||||
|
<username>dbuser01</username>
|
||||||
|
<password>QWEasd759</password>
|
||||||
|
<url>jdbc:postgresql://10.2.5.46:5432/db01</url>
|
||||||
|
<referenceDriver>org.postgresql.Driver</referenceDriver>
|
||||||
|
<referenceUrl>jdbc:postgresql://10.2.5.47:5432/db01</referenceUrl>
|
||||||
|
<referenceUsername>dbuser01</referenceUsername>
|
||||||
|
<referencePassword>QWEasd759</referencePassword>
|
||||||
|
<goal>diff</goal>
|
||||||
|
<dataDir>prod/data</dataDir>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<logging>debug</logging>
|
||||||
|
</properties>
|
||||||
|
</configuration>
|
||||||
|
</activation>
|
||||||
|
</profile>-->
|
||||||
|
</profiles>
|
||||||
|
</project>
|
||||||
13
prod/liquibase.properties
Normal file
13
prod/liquibase.properties
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# url=jdbc:postgresql://10.2.5.46:5432/db01
|
||||||
|
# username=dbuser01
|
||||||
|
# password=QWEasd759
|
||||||
|
|
||||||
|
# driver=org.postgresql.Driver
|
||||||
|
# classpath=/opt/liquibase/postgresql-42.6.0.jar
|
||||||
|
# changeLogFile=master.xml
|
||||||
|
# liquibaseSchemaName=liquibase
|
||||||
|
# defaultSchemaName=public
|
||||||
|
|
||||||
|
# referenceUrl=jdbc:postgresql://10.2.5.47:5432/db01
|
||||||
|
# referenceUsername=dbuser01
|
||||||
|
# referencePassword=QWEasd759
|
||||||
Loading…
x
Reference in New Issue
Block a user