From: Robert Bohne Date: Wed, 17 Feb 2010 09:37:56 +0000 (+0100) Subject: Update custom_column_info POD X-Git-Tag: 0.05003~5^2~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c4a389d6a924b30fa323659755ffe29baebf3ba;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Update custom_column_info POD --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 905eb76..e304c7c 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -388,7 +388,28 @@ Example: custom_column_info => sub { my $info = shift; - + # Example from $info hashref: + # $info = { + # 'DECIMAL_DIGITS' => undef, + # 'COLUMN_DEF' => undef, + # 'TABLE_CAT' => undef, + # 'NUM_PREC_RADIX' => undef, + # 'TABLE_SCHEM' => 'TESTS', + # 'BUFFER_LENGTH' => '8', + # 'CHAR_OCTET_LENGTH' => undef, + # 'IS_NULLABLE' => 'NO', + # 'REMARKS' => undef, + # 'COLUMN_SIZE' => '8', + # 'ORDINAL_POSITION' => '1', + # 'COLUMN_NAME' => 'LOADER_TEST9', + # 'TYPE_NAME' => 'VARCHAR2', + # 'NULLABLE' => '0', + # 'DATA_TYPE' => '12', + # 'TABLE_NAME' => 'LOADER_TEST9', + # 'SQL_DATA_TYPE' => '12', + # 'SQL_DATETIME_SUB' => undef + # }; + if ( $info->{TYPE_NAME} eq 'DATE' ){ return { timezone => "Europe/Berlin" }; }