This commit is contained in:
Lukas Eder 2019-12-04 14:04:28 +01:00
parent 6f7f7f239e
commit 358871ed21

View File

@ -415,6 +415,7 @@ final class DDLInterpreter {
else if (fc instanceof Constraint && !fc.getUnqualifiedName().empty() && existing.constraint((Constraint) fc) != null)
throw constraintAlreadyExists((Constraint) fc);
// TODO: ReverseIterable is not a viable approach if we also allow constraints to be added this way
if (query.$addFirst()) {
for (Field<?> f : assertFields(query, reverseIterable(query.$add())))
addField(existing, 0, (UnqualifiedName) f.getUnqualifiedName(), ((Field<?>) f).getDataType());