introspect ON/DEFERRABLE FK clauses for SQLite
authorRafael Kitover <rkitover@cpan.org>
Sun, 2 Sep 2012 21:29:01 +0000 (17:29 -0400)
committerRafael Kitover <rkitover@cpan.org>
Mon, 3 Sep 2012 05:17:08 +0000 (01:17 -0400)
commit3b61a7ca5fade36343b5abdd11bb6b29e47e043c
tree7419bade59f7f114c401ac49d4575e7b59763e50
parent8990a2b23d98bcb87da292ee3731de3ac4f1b86f
introspect ON/DEFERRABLE FK clauses for SQLite

The ON clauses are simple to get, pragma foreign_key_list returns them,
but for the DEFERRABLE clause we have to parse the table DDL from
sqlite_master, a bit hairy but should be correct.
Changes
lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
t/10_01sqlite_common.t