[jOOQ/jOOQ#18481] Diff generates CREATE VIEW statements that depend on
not-yet existing tables
This commit is contained in:
parent
e309ddb960
commit
6ed23f2c45
@ -979,6 +979,7 @@ final class Diff {
|
||||
}
|
||||
|
||||
static final int sortIndex(Query q) {
|
||||
final int VIEW = 5;
|
||||
final int FKEY = 4;
|
||||
final int CONS = 3;
|
||||
final int NULL = 2;
|
||||
@ -1017,6 +1018,10 @@ final class Diff {
|
||||
return -CONS;
|
||||
else if (q instanceof QOM.CreateIndex)
|
||||
return CONS;
|
||||
else if (q instanceof QOM.DropView)
|
||||
return -VIEW;
|
||||
else if (q instanceof QOM.CreateView)
|
||||
return VIEW;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user