135 lines
6.0 KiB
XML
135 lines
6.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- ****************** Sequencia ****************** -->
|
|
<!-- mvn flyway:clean -f .\test.xml -Pinitialize -->
|
|
<!-- mvn flyway:baseline -f .\test.xml -Pinitialize -->
|
|
<!-- mvn flyway:migrate -f .\test.xml -Pinitialize -->
|
|
<!-- mvn flyway:migrate -f .\test.xml -Pscripts -->
|
|
<!-- mvn flyway:migrate -f .\test.xml -PcleanScripts -->
|
|
<!-- mvn flyway:migrate -f .\test.xml -Pscripts -->
|
|
<!-- *********************************************** -->
|
|
<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>flywayMigration</groupId>
|
|
<artifactId>br.com.rjconsultores</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<flyway.version>5.2.0</flyway.version>
|
|
<database.url>jdbc:oracle:thin:@//10.20.30.10:1524/ORCLCDB</database.url>
|
|
<!-- <database.url>jdbc:oracle:thin:@//10.20.30.11:1521/ORCL</database.url> -->
|
|
<database.user>c##testcdb</database.user>
|
|
<databese.password>vtax05</databese.password>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-core</artifactId>
|
|
<version>${flyway.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>initialize</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-maven-plugin</artifactId>
|
|
<version>${flyway.version}</version>
|
|
<configuration>
|
|
<sqlMigrationSeparator>__</sqlMigrationSeparator>
|
|
<baselineOnMigrate>true</baselineOnMigrate>
|
|
<table>schema_version</table>
|
|
<locations>
|
|
<location>filesystem:src/db/tests/initialize</location>
|
|
</locations>
|
|
<url>${database.url}</url>
|
|
<user>${database.user}</user>
|
|
<password>${databese.password}</password>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.oracle.jdbc</groupId>
|
|
<artifactId>ojdbc6</artifactId>
|
|
<version>12.1.0.2.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>scripts</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-maven-plugin</artifactId>
|
|
<version>${flyway.version}</version>
|
|
<configuration>
|
|
<sqlMigrationSeparator>__</sqlMigrationSeparator>
|
|
<baselineOnMigrate>true</baselineOnMigrate>
|
|
<validateOnMigrate>false</validateOnMigrate>
|
|
<table>schema_version</table>
|
|
<locations>
|
|
<location>filesystem:src/db/migration</location>
|
|
</locations>
|
|
<url>${database.url}</url>
|
|
<user>${database.user}</user>
|
|
<password>${databese.password}</password>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.oracle.jdbc</groupId>
|
|
<artifactId>ojdbc6</artifactId>
|
|
<version>12.1.0.2.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>cleanScripts</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-maven-plugin</artifactId>
|
|
<version>${flyway.version}</version>
|
|
<configuration>
|
|
<sqlMigrationSeparator>__</sqlMigrationSeparator>
|
|
<baselineOnMigrate>true</baselineOnMigrate>
|
|
<validateOnMigrate>false</validateOnMigrate>
|
|
<table>schema_version_sec</table>
|
|
<locations>
|
|
<location>filesystem:src/db/tests/clean</location>
|
|
</locations>
|
|
<url>${database.url}</url>
|
|
<user>${database.user}</user>
|
|
<password>${databese.password}</password>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.oracle.jdbc</groupId>
|
|
<artifactId>ojdbc6</artifactId>
|
|
<version>12.1.0.2.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|