[Dbix-class] is_nullable
Dermot
paikkos at googlemail.com
Wed Mar 18 17:28:53 GMT 2009
2009/3/18 Ronald J Kimball <rkimball+dbixclass at pangeamedia.com>:
> Dermot wrote:
>>
>> Hi,
>>
>> I notice that when I use DBIx::Class::Schema::Loader it always creates
>> the columns as is_nullable => 0.
>>
>> Is this by design or is there an option I can pass it so that my
>> ResultSources will maintain their 'NOT NULL'.
>
> is_nullable => 0 and NOT NULL mean the same thing, don't they?
>
I think it's one of them there double negatives :)
is_nullable
Set this to a true value for a columns that is allowed to contain
NULL values. This is currently only used by "deploy" in
DBIx::Class::Schema.
Dp.
More information about the DBIx-Class
mailing list