-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DB Merge Tool Output Improvement (#187)
* Making merge more concise * Making merge more concise * Making merge more concise
- Loading branch information
1 parent
dc3da91
commit 7431e5b
Showing
26 changed files
with
208 additions
and
138 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
15 changes: 8 additions & 7 deletions
15
...expected/schema/table/db2/DIFF_IN_ONE.ddl → ...erge/expected/schema/sp/DIFF_IN_ONE.0.ddl
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,8 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
DIFF_COL INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db2*" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
DIFF_COL INT NULL | ||
) | ||
GO |
13 changes: 7 additions & 6 deletions
13
...ge/expected/schema/sp/db1/DIFF_IN_ONE.ddl → ...erge/expected/schema/sp/DIFF_IN_ONE.1.ddl
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,7 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db1*,db3*" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
15 changes: 8 additions & 7 deletions
15
...d/schema/sp/db3/DIFF_ONE_AND_MISS_ONE.ddl → ...ted/schema/sp/DIFF_ONE_AND_MISS_ONE.0.ddl
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,8 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
THIS_DIFF_COL INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db3*" comment="missingInInstances_db1" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
THIS_DIFF_COL INT NULL | ||
) | ||
GO |
13 changes: 7 additions & 6 deletions
13
...chema/table/db2/DIFF_ONE_AND_MISS_ONE.ddl → ...ted/schema/sp/DIFF_ONE_AND_MISS_ONE.1.ddl
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,7 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db2*" comment="missingInInstances_db1" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
12 changes: 6 additions & 6 deletions
12
obevo-db/src/test/resources/scenariotests/reveng-merge/expected/schema/sp/SAME_IN_ALL.ddl
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 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_ALL ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_ALL ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
13 changes: 7 additions & 6 deletions
13
...chema/table/only-db1-db3/SAME_IN_SOME.ddl → ...hema/sp/SAME_IN_SOME.instancesMissing.ddl
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,7 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_SOME ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db1*,db3*" comment="missingInInstances_db2" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_SOME ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
1 change: 0 additions & 1 deletion
1
...-db/src/test/resources/scenariotests/reveng-merge/expected/schema/sp/db1/package-info.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...-db/src/test/resources/scenariotests/reveng-merge/expected/schema/sp/db2/package-info.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...-db/src/test/resources/scenariotests/reveng-merge/expected/schema/sp/db3/package-info.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...est/resources/scenariotests/reveng-merge/expected/schema/sp/only-db1-db3/package-info.txt
This file was deleted.
Oops, something went wrong.
15 changes: 8 additions & 7 deletions
15
...ge/expected/schema/sp/db2/DIFF_IN_ONE.ddl → ...e/expected/schema/table/DIFF_IN_ONE.0.ddl
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,8 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
DIFF_COL INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db2*" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
DIFF_COL INT NULL | ||
) | ||
GO |
13 changes: 7 additions & 6 deletions
13
...ge/expected/schema/sp/db3/DIFF_IN_ONE.ddl → ...e/expected/schema/table/DIFF_IN_ONE.1.ddl
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,7 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db1*,db3*" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_IN_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
15 changes: 8 additions & 7 deletions
15
...chema/table/db3/DIFF_ONE_AND_MISS_ONE.ddl → .../schema/table/DIFF_ONE_AND_MISS_ONE.0.ddl
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,8 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
THIS_DIFF_COL INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db3*" comment="missingInInstances_db1" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL, | ||
THIS_DIFF_COL INT NULL | ||
) | ||
GO |
13 changes: 7 additions & 6 deletions
13
...d/schema/sp/db2/DIFF_ONE_AND_MISS_ONE.ddl → .../schema/table/DIFF_ONE_AND_MISS_ONE.1.ddl
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,7 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db2*" comment="missingInInstances_db1" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE DIFF_ONE_AND_MISS_ONE ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
12 changes: 6 additions & 6 deletions
12
obevo-db/src/test/resources/scenariotests/reveng-merge/expected/schema/table/SAME_IN_ALL.ddl
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 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_ALL ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_ALL ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
13 changes: 7 additions & 6 deletions
13
...d/schema/sp/only-db1-db3/SAME_IN_SOME.ddl → ...a/table/SAME_IN_SOME.instancesMissing.ddl
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,7 @@ | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_SOME ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO | ||
//// METADATA includeEnvs="db1*,db3*" comment="missingInInstances_db2" | ||
//// CHANGE name=chng1 | ||
CREATE TABLE SAME_IN_SOME ( | ||
A_ID INT NOT NULL, | ||
B_ID INT NULL | ||
) | ||
GO |
6 changes: 0 additions & 6 deletions
6
...b/src/test/resources/scenariotests/reveng-merge/expected/schema/table/db1/DIFF_IN_ONE.ddl
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
.../src/test/resources/scenariotests/reveng-merge/expected/schema/table/db1/package-info.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.