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?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=2d707084ec543d82b165082c5b5170fdcc3111c1 Added add_columns documentation about controlling float precision --- diff --git a/AUTHORS b/AUTHORS index c6f307d..83d36d7 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 }