Skip to content
Snippets Groups Projects
Commit c3313c79 authored by Laurent Gil's avatar Laurent Gil
Browse files

Update the regexp to catch the primary key line

parent 6d86bde0
No related branches found
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@ while (<SQLFILE>) {
else {
## INDEXES ##
if ($doc =~ /^\s*(primary\s+key)\s*\((.+)\)/i or $doc =~ /^\s*(unique)\s*\((.+)\)/i){ # Primary or unique;
if ($doc =~ /^\s*(primary\s+key)\s*\w*\s*\((.+)\)/i or $doc =~ /^\s*(unique)\s*\((.+)\)/i){ # Primary or unique;
add_column_index($1,$2);
next;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment