Rename flyway-migration -> flyway

This commit is contained in:
Grzegorz Piwowarek 2016-10-23 19:07:13 +02:00
parent b1b4d4ff7f
commit a757c7e301
7 changed files with 56 additions and 54 deletions

View File

@ -1,4 +1,4 @@
.classpath .classpath
.project .project
.settings .settings
target/ target/

View File

@ -1,8 +1,8 @@
CREATE TABLE IF NOT EXISTS `employee` ( CREATE TABLE IF NOT EXISTS `employee` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` varchar(20), `name` varchar(20),
`email` varchar(50), `email` varchar(50),
`date_of_birth` timestamp `date_of_birth` timestamp
)ENGINE=InnoDB DEFAULT CHARSET=UTF8; )ENGINE=InnoDB DEFAULT CHARSET=UTF8;

View File

@ -1,8 +1,8 @@
CREATE TABLE IF NOT EXISTS `department` ( CREATE TABLE IF NOT EXISTS `department` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` varchar(20) `name` varchar(20)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8; )ENGINE=InnoDB DEFAULT CHARSET=UTF8;
ALTER TABLE `employee` ADD `dept_id` int AFTER `email`; ALTER TABLE `employee` ADD `dept_id` int AFTER `email`;

View File

@ -1,5 +1,5 @@
flyway.user=root flyway.user=root
flyway.password=mysql flyway.password=mysql
flyway.schemas=app-db flyway.schemas=app-db
flyway.url=jdbc:mysql://localhost:3306/ flyway.url=jdbc:mysql://localhost:3306/
flyway.locations=filesystem:db/migration flyway.locations=filesystem:db/migration

View File

@ -1,34 +1,34 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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"> 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> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>flyway-migration</artifactId> <artifactId>flyway</artifactId>
<version>1.0</version> <version>1.0</version>
<name>flyway-migration</name> <name>flyway</name>
<description>A sample project to demonstrate Flyway migrations</description> <description>A sample project to demonstrate Flyway migrations</description>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
<version>6.0.3</version> <version>6.0.3</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.flywaydb</groupId> <groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId> <artifactId>flyway-maven-plugin</artifactId>
<version>4.0.3</version> <version>4.0.3</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version> <version>3.5.1</version>
<configuration> <configuration>
<source>1.8</source> <source>1.8</source>
<target>1.8</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -32,6 +32,8 @@
<module>feign-client</module> <module>feign-client</module>
<!-- <module>gatling</module> --> <!-- not meant to run as part of the standard build --> <!-- <module>gatling</module> --> <!-- not meant to run as part of the standard build -->
<module>flyway</module>
<module>gson</module> <module>gson</module>
<module>guava</module> <module>guava</module>
<module>guava18</module> <module>guava18</module>