From: Dagfinn Ilmari Mannsåker Date: Wed, 10 Dec 2014 17:27:44 +0000 (+0000) Subject: Remove redundant entries from Producer::PostrgeSQL's type mapping X-Git-Tag: v0.11021~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1fe06e3f866075f9d6af948c48b81f3a7c497297;p=dbsrgits%2FSQL-Translator.git Remove redundant entries from Producer::PostrgeSQL's type mapping --- diff --git a/lib/SQL/Translator/Producer/PostgreSQL.pm b/lib/SQL/Translator/Producer/PostgreSQL.pm index c45229a..8f8478e 100644 --- a/lib/SQL/Translator/Producer/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/PostgreSQL.pm @@ -54,18 +54,15 @@ BEGIN { # # MySQL types # - bigint => 'bigint', double => 'double precision', decimal => 'numeric', int => 'integer', mediumint => 'integer', - smallint => 'smallint', tinyint => 'smallint', char => 'character', varchar => 'character varying', longtext => 'text', mediumtext => 'text', - text => 'text', tinytext => 'text', tinyblob => 'bytea', blob => 'bytea', @@ -73,33 +70,21 @@ BEGIN { longblob => 'bytea', enum => 'character varying', set => 'character varying', - date => 'date', datetime => 'timestamp', - time => 'time', - timestamp => 'timestamp', year => 'date', # # Oracle types # number => 'integer', - char => 'character', varchar2 => 'character varying', long => 'text', CLOB => 'bytea', - date => 'date', # # Sybase types # - int => 'integer', - money => 'money', - varchar => 'character varying', - datetime => 'timestamp', - text => 'text', comment => 'text', - bit => 'bit', - tinyint => 'smallint', ); $max_id_length = 62;