From: Robert Stone Date: Sat, 27 Dec 2014 19:19:10 +0000 (-0600) Subject: Added add_columns documentation about controlling float precision X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2e7c645c866096547804db44bf90c795205b153c;p=dbsrgits%2FDBIx-Class-Historic.git Added add_columns documentation about controlling float precision --- diff --git a/AUTHORS b/AUTHORS index 0af3503..1264ab2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -60,6 +60,7 @@ dim0xff: Dmitry Latin dkubb: Dan Kubb dnm: Justin Wheeler dpetrov: Dimitar Petrov +Dr^ZigMan: Robert Stone dsteinbrunner: David Steinbrunner duncan_dmg: Duncan Garland dwc: Daniel Westermann-Clark diff --git a/Changes b/Changes index 2e6f3a9..19841b8 100644 --- a/Changes +++ b/Changes @@ -28,7 +28,7 @@ Revision history for DBIx::Class * Misc - Remove warning about potential side effects of RT#79576 (scheduled) - - Various doc improvements (GH#71, GH#72) + - Various doc improvements (GH#70, GH#71, GH#72) - Skip tests in a way more intelligent and speedy manner when optional dependencies are missing - Make the Optional::Dependencies error messages cpanm-friendly diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index 4b8f1dd..c88361f 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -211,6 +211,12 @@ The length of your column, if it is a column type that can have a size restriction. This is currently only used to create tables from your schema, see L. + { size => [ 9, 6 ] } + +For decimal or float values you can specify an ArrayRef in order to +control precision, assuming your database's +L supports it. + =item is_nullable { is_nullable => 1 }