-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed DbMigration classes (put them in the right place)
- Loading branch information
Showing
130 changed files
with
517 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
The migration dir contains 3 folders `v1_0`, `v1_1`, `v1_2`. | ||
|
||
The general idea is, that we try to perform a migration (=`v1.0` -> `v1.1`) and also if it is revertable (= `v1.1` -> `v1.0`) | ||
|
||
To achieve that, the directories `v1_0` and `v1_2` should be as equal as possible. Annomalies should be commented. | ||
|
||
It is also important, if new models are added, that all table names (also for M2M) are added in the `DbMigrationTest` | ||
cleanup routine. | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...st/java/misc/migration/v1_0/DropMain.java → ...st/java/misc/migration/v1_1/DropMain.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package misc.migration.v1_0; | ||
package misc.migration.v1_1; | ||
|
||
import javax.persistence.*; | ||
import java.util.List; | ||
|
3 changes: 1 addition & 2 deletions
3
...java/misc/migration/v1_0/DropRefMany.java → ...java/misc/migration/v1_1/DropRefMany.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../java/misc/migration/v1_0/DropRefOne.java → .../java/misc/migration/v1_1/DropRefOne.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/idx_clickhouse.migrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
1672735407, 1.0__initial.sql | ||
540706946, 1.1.sql | ||
-875723380, 1.2__dropsFor_1.1.sql | ||
688811494, 1.2__dropsFor_1.1.sql | ||
1015552567, 1.3.sql | ||
255653518, 1.4__dropsFor_1.3.sql | ||
677297367, 1.4__dropsFor_1.3.sql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/idx_cockroach.migrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
1867456246, 1.0__initial.sql | ||
-412570267, 1.1.sql | ||
395394572, 1.2__dropsFor_1.1.sql | ||
-861259583, 1.3.sql | ||
-971909974, 1.4__dropsFor_1.3.sql | ||
1284257915, 1.1.sql | ||
856096334, 1.2__dropsFor_1.1.sql | ||
-279468991, 1.3.sql | ||
2137365848, 1.4__dropsFor_1.3.sql | ||
561281075, R__order_views.sql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/idx_db2.migrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-283216660, 1.0__initial.sql | ||
1120848440, 1.1.sql | ||
135256939, 1.2__dropsFor_1.1.sql | ||
-2139056187, 1.3.sql | ||
946163478, 1.4__dropsFor_1.3.sql | ||
-184000413, 1.1.sql | ||
-1187336846, 1.2__dropsFor_1.1.sql | ||
-1811865535, 1.3.sql | ||
-1255430844, 1.4__dropsFor_1.3.sql | ||
561281075, R__order_views.sql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/idx_generic.migrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-528359263, 1.0__initial.sql | ||
-1374084944, 1.1.sql | ||
-875723380, 1.2__dropsFor_1.1.sql | ||
-819139044, 1.3.sql | ||
255653518, 1.4__dropsFor_1.3.sql | ||
253988246, 1.1.sql | ||
688811494, 1.2__dropsFor_1.1.sql | ||
674925120, 1.3.sql | ||
677297367, 1.4__dropsFor_1.3.sql | ||
|
Oops, something went wrong.