From: Songmu Date: Sat, 28 Sep 2013 14:10:58 +0000 (+0900) Subject: Add SQL_TINYINT and SQL_BIGINT to %SQL::Translator::Schema::Field::type_mapping X-Git-Tag: v0.011017~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf915bd8314fb9cd781f1d65cb398cbb98b6ad3b;p=dbsrgits%2FSQL-Translator.git Add SQL_TINYINT and SQL_BIGINT to %SQL::Translator::Schema::Field::type_mapping SQL_BIGINT was added in DBI 1.54, so bump the dependency. --- diff --git a/Changes b/Changes index d37a7b4..02ab2c6 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,8 @@ * SQLite support for SET NULL, SET DEFAULT and NO ACTION in FK clauses * Clean up properly after Parser::DBI::PostgreSQL tests * Fix typos in error messages +* Add SQL_TINYINT and SQL_BIGINT to the type map in + SQL::Translator::Schema::Field # ---------------------------------------------------------- # 0.11016 2012-10-09 diff --git a/Makefile.PL b/Makefile.PL index 8fcabde..8a3183f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -12,7 +12,7 @@ my $deps = { 'Digest::SHA' => '0', 'Carp::Clan' => '0', 'Parse::RecDescent' => '1.967009', - 'DBI' => '0', + 'DBI' => '1.54', 'File::ShareDir' => '1.0', 'Moo' => '1.000003', 'Package::Variant' => '1.001001', diff --git a/lib/SQL/Translator/Schema/Field.pm b/lib/SQL/Translator/Schema/Field.pm index f6ce2a6..b9aed47 100644 --- a/lib/SQL/Translator/Schema/Field.pm +++ b/lib/SQL/Translator/Schema/Field.pm @@ -48,8 +48,9 @@ our %type_mapping = ( integer => SQL_INTEGER, int => SQL_INTEGER, + tinyint => SQL_TINYINT, smallint => SQL_SMALLINT, - bigint => 9999, # DBI doesn't export a constant for this. Le suck + bigint => SQL_BIGINT, double => SQL_DOUBLE,