detect inline deferrable FKs for SQLite
authorRafael Kitover <rkitover@cpan.org>
Sun, 9 Sep 2012 13:12:08 +0000 (09:12 -0400)
committerRafael Kitover <rkitover@cpan.org>
Sun, 9 Sep 2012 13:14:43 +0000 (09:14 -0400)
commitadd8bcf0aabf53cddb452eda4d3b25a35bf57d25
tree1ce2d1667376f6f95ece073bc7a017d0fc4410c1
parent7b6a8d73e16b9b33bc8feb216b7bc8428cd7518b
detect inline deferrable FKs for SQLite

The previous attempt to detect DEFERRABLE on FKs only detected for
FOREIGN KEY clauses in DDL, not for inline constraints such as:

    int foo references bar(id) deferrable

add code and tests to detect inline FKs as well.
Changes
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
t/10_01sqlite_common.t