diff options
Diffstat (limited to 'lib/VNDBSchema.pm')
-rw-r--r-- | lib/VNDBSchema.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDBSchema.pm b/lib/VNDBSchema.pm index 5865fe43..c095550d 100644 --- a/lib/VNDBSchema.pm +++ b/lib/VNDBSchema.pm @@ -109,7 +109,7 @@ sub references { open my $F, '<', $fn or die "$fn: $!"; while(<$F>) { chomp; - next if !/^\s*ALTER\s+TABLE\s+([^ ]+)\s+ADD\s+CONSTRAINT\s+([^ ]+)\s+FOREIGN\s+KEY\s+\(([^\)]+)\)\s+REFERENCES\s+([^ ]+)\s*\(([^\)]+)\)/; + next if !/^\s*ALTER\s+TABLE\s+([^ ]+)\s+ADD\s+CONSTRAINT\s+([^ ]+)\s+FOREIGN\s+KEY\s+\(([^\)]+)\)\s*REFERENCES\s+([^ ]+)\s*\(([^\)]+)\)/; push @ref, { decl => $_, from_table => $1, |