pvanek / sqliteman

http://sqliteman.com/
161 stars 58 forks source link

Perl Catalyst / DBIx Compatibility #4

Closed cilynx closed 10 years ago

cilynx commented 10 years ago

I made a couple updates that make sqliteman much more efficient around REFERENCEs and CASCADEs.

1) Got rid of toUpper on field.type. This prevents "REFERENCES foo(id)" from being converted to "REFERENCES FOO(ID)" since schema creation from SQLite by several external tools is case sensitive. 2) Added a call to sqlite_master which parses the full CREATE statement, thus preserving REFERENCEs, CASCADEs, PRIMARY KEYs, and anything else interesting that shows up in the CREATE statement but not in the PRAGMA definition over table Alters.