Skip to content

Commit a757c7e

Browse files
author
Grzegorz Piwowarek
committed
Rename flyway-migration -> flyway
1 parent b1b4d4f commit a757c7e

7 files changed

Lines changed: 56 additions & 54 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.classpath
2-
.project
3-
.settings
1+
.classpath
2+
.project
3+
.settings
44
target/
File renamed without changes.

flyway-migration/db/migration/V1_0__create_employee_schema.sql renamed to flyway/db/migration/V1_0__create_employee_schema.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CREATE TABLE IF NOT EXISTS `employee` (
2-
3-
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
4-
`name` varchar(20),
5-
`email` varchar(50),
6-
`date_of_birth` timestamp
7-
1+
CREATE TABLE IF NOT EXISTS `employee` (
2+
3+
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
4+
`name` varchar(20),
5+
`email` varchar(50),
6+
`date_of_birth` timestamp
7+
88
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;

flyway-migration/db/migration/V2_0__create_department_schema.sql renamed to flyway/db/migration/V2_0__create_department_schema.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
CREATE TABLE IF NOT EXISTS `department` (
2-
3-
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
4-
`name` varchar(20)
5-
6-
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
7-
1+
CREATE TABLE IF NOT EXISTS `department` (
2+
3+
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
4+
`name` varchar(20)
5+
6+
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
7+
88
ALTER TABLE `employee` ADD `dept_id` int AFTER `email`;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
flyway.user=root
2-
flyway.password=mysql
3-
flyway.schemas=app-db
4-
flyway.url=jdbc:mysql://localhost:3306/
1+
flyway.user=root
2+
flyway.password=mysql
3+
flyway.schemas=app-db
4+
flyway.url=jdbc:mysql://localhost:3306/
55
flyway.locations=filesystem:db/migration
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.baeldung</groupId>
5-
<artifactId>flyway-migration</artifactId>
6-
<version>1.0</version>
7-
<name>flyway-migration</name>
8-
<description>A sample project to demonstrate Flyway migrations</description>
9-
<dependencies>
10-
<dependency>
11-
<groupId>mysql</groupId>
12-
<artifactId>mysql-connector-java</artifactId>
13-
<version>6.0.3</version>
14-
</dependency>
15-
</dependencies>
16-
<build>
17-
<plugins>
18-
<plugin>
19-
<groupId>org.flywaydb</groupId>
20-
<artifactId>flyway-maven-plugin</artifactId>
21-
<version>4.0.3</version>
22-
</plugin>
23-
<plugin>
24-
<groupId>org.apache.maven.plugins</groupId>
25-
<artifactId>maven-compiler-plugin</artifactId>
26-
<version>3.5.1</version>
27-
<configuration>
28-
<source>1.8</source>
29-
<target>1.8</target>
30-
</configuration>
31-
</plugin>
32-
</plugins>
33-
</build>
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.baeldung</groupId>
5+
<artifactId>flyway</artifactId>
6+
<version>1.0</version>
7+
<name>flyway</name>
8+
<description>A sample project to demonstrate Flyway migrations</description>
9+
<dependencies>
10+
<dependency>
11+
<groupId>mysql</groupId>
12+
<artifactId>mysql-connector-java</artifactId>
13+
<version>6.0.3</version>
14+
</dependency>
15+
</dependencies>
16+
<build>
17+
<plugins>
18+
<plugin>
19+
<groupId>org.flywaydb</groupId>
20+
<artifactId>flyway-maven-plugin</artifactId>
21+
<version>4.0.3</version>
22+
</plugin>
23+
<plugin>
24+
<groupId>org.apache.maven.plugins</groupId>
25+
<artifactId>maven-compiler-plugin</artifactId>
26+
<version>3.5.1</version>
27+
<configuration>
28+
<source>1.8</source>
29+
<target>1.8</target>
30+
</configuration>
31+
</plugin>
32+
</plugins>
33+
</build>
3434
</project>

‎pom.xml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
<module>feign-client</module>
3333
<!-- <module>gatling</module> --> <!-- not meant to run as part of the standard build -->
3434

35+
<module>flyway</module>
36+
3537
<module>gson</module>
3638
<module>guava</module>
3739
<module>guava18</module>

0 commit comments

Comments
 (0)