Bug 6254: (follow-up) update DBIC classes

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Kyle Hall 2014-05-07 12:15:57 -04:00 committed by Galen Charlton
parent 1a737dcee6
commit e4cd412f2e

View file

@ -1,21 +1,17 @@
use utf8;
package Koha::Schema::Result::Category; package Koha::Schema::Result::Category;
# Created by DBIx::Class::Schema::Loader # Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE # DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Koha::Schema::Result::Category
=cut
use strict; use strict;
use warnings; use warnings;
use base 'DBIx::Class::Core'; use base 'DBIx::Class::Core';
=head1 TABLE: C<categories>
=head1 NAME
Koha::Schema::Result::Category
=cut =cut
@ -43,7 +39,6 @@ __PACKAGE__->table("categories");
=head2 enrolmentperioddate =head2 enrolmentperioddate
data_type: 'date' data_type: 'date'
datetime_undef_if_invalid: 1
is_nullable: 1 is_nullable: 1
=head2 upperagelimit =head2 upperagelimit
@ -108,6 +103,13 @@ __PACKAGE__->table("categories");
default_value: -1 default_value: -1
is_nullable: 0 is_nullable: 0
=head2 default_privacy
data_type: 'enum'
default_value: 'default'
extra: {list => ["default","never","forever"]}
is_nullable: 0
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
@ -118,7 +120,7 @@ __PACKAGE__->add_columns(
"enrolmentperiod", "enrolmentperiod",
{ data_type => "smallint", is_nullable => 1 }, { data_type => "smallint", is_nullable => 1 },
"enrolmentperioddate", "enrolmentperioddate",
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, { data_type => "date", is_nullable => 1 },
"upperagelimit", "upperagelimit",
{ data_type => "smallint", is_nullable => 1 }, { data_type => "smallint", is_nullable => 1 },
"dateofbirthrequired", "dateofbirthrequired",
@ -141,18 +143,14 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 }, { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
"blockexpiredpatronopacactions", "blockexpiredpatronopacactions",
{ data_type => "tinyint", default_value => -1, is_nullable => 0 }, { data_type => "tinyint", default_value => -1, is_nullable => 0 },
"default_privacy",
{
data_type => "enum",
default_value => "default",
extra => { list => ["default", "never", "forever"] },
is_nullable => 0,
},
); );
=head1 PRIMARY KEY
=over 4
=item * L</categorycode>
=back
=cut
__PACKAGE__->set_primary_key("categorycode"); __PACKAGE__->set_primary_key("categorycode");
=head1 RELATIONS =head1 RELATIONS
@ -233,8 +231,8 @@ __PACKAGE__->might_have(
); );
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-05 02:00:18 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2014-05-07 12:15:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:21IkmwMfRevsRHU9ezaIKg # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CwCE9qxkWafuO9btYXWZeg
# You can replace this text with custom content, and it will be preserved on regeneration # You can replace this text with custom content, and it will be preserved on regeneration