X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FSQLite.pm;h=a26a4672353ff663518c1b7cfa04c6d184f8a240;hb=d7928f663c62e37cbbf7b6310b1fb11e7d6f1176;hp=581c2d5e70c576be234097c1553a2394ec7b92f4;hpb=605fcea8ba8b59e384cc32f38dc5a9e2131fe22b;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index 581c2d5..a26a467 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -97,12 +97,12 @@ sub _sqlite_parse_table { # Grab reference chomp $col; - if($col =~ /^(.*)\s+UNIQUE/) { + if($col =~ /^(.*)\s+UNIQUE/i) { my $colname = $1; $colname =~ s/\s+.*$//; push(@uniqs, [ "${colname}_unique" => [ lc $colname ] ]); } - elsif($col =~/^\s*UNIQUE\s*\(\s*(.*)\)/) { + elsif($col =~/^\s*UNIQUE\s*\(\s*(.*)\)/i) { my $cols = $1; $cols =~ s/\s+$//; my @cols = map { lc } split(/\s*,\s*/, $cols);