teste
parent
fb25d434c8
commit
13055a4e2a
135
test.xml
135
test.xml
|
@ -1,135 +0,0 @@
|
|||
<?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.171.88.14:1524/ORCLCDB</database.url>
|
||||
<!-- <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>
|
136
test2.xml
136
test2.xml
|
@ -1,136 +0,0 @@
|
|||
<?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.171.88.14:1524/ORCLCDB</database.url>
|
||||
<!-- <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##vtateste1</database.user> -->
|
||||
<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>
|
Loading…
Reference in New Issue