From: Brandon Black Date: Mon, 9 Apr 2007 13:12:53 +0000 (+0000) Subject: fix case-sensitivity in UNIQUE parsing for SQLite X-Git-Tag: 0.03011~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e6d4a22657f67cd655181f7a1a686f416e8e71f;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix case-sensitivity in UNIQUE parsing for SQLite --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index 8ca2d66..10af19b 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -77,12 +77,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);