schema/spacewalk/schema-source-sanity-check.pl | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 39d544511a7d60dcc54787ccb077366982163377
Author: Tomas Kasparek <tkasparek(a)redhat.com>
Date: Thu Feb 21 09:59:16 2013 +0100
*._index.sql files can be used for definition of indexes
Function indexes in oracle and postgres have differenet syntax
diff --git a/schema/spacewalk/schema-source-sanity-check.pl
b/schema/spacewalk/schema-source-sanity-check.pl
index b27cf46..0f38bd2 100644
--- a/schema/spacewalk/schema-source-sanity-check.pl
+++ b/schema/spacewalk/schema-source-sanity-check.pl
@@ -78,6 +78,9 @@ sub check_file_content {
close FILE;
# print "[$filename] [$type] [$name]\n";
if ($type eq 'tables') {
+ if ($filename =~ '\w*_index.sql') {
+ $name =~ s/_index$//g;
+ }
if (not $content =~ /^(--.*\n
|\s*\n
|(create|alter|comment\s+on)\s+table\s+$name\b[^;]+;
Show replies by date