2 package Koha
::Schema
::Result
::OldIssue
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::OldIssue
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<old_issues>
22 __PACKAGE__
->table("old_issues");
46 datetime_undef_if_invalid: 1
58 datetime_undef_if_invalid: 1
61 =head2 lastreneweddate
64 datetime_undef_if_invalid: 1
86 data_type: 'timestamp'
87 datetime_undef_if_invalid: 1
88 default_value: current_timestamp
94 datetime_undef_if_invalid: 1
97 =head2 onsite_checkout
105 __PACKAGE__
->add_columns(
107 { data_type
=> "integer", is_nullable
=> 0 },
109 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
111 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
114 data_type
=> "datetime",
115 datetime_undef_if_invalid
=> 1,
119 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
122 data_type
=> "datetime",
123 datetime_undef_if_invalid
=> 1,
128 data_type
=> "datetime",
129 datetime_undef_if_invalid
=> 1,
133 { data_type
=> "varchar", is_nullable
=> 1, size
=> 4 },
135 { data_type
=> "tinyint", is_nullable
=> 1 },
137 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 1 },
140 data_type
=> "timestamp",
141 datetime_undef_if_invalid
=> 1,
142 default_value
=> \"current_timestamp
",
147 data_type => "datetime
",
148 datetime_undef_if_invalid => 1,
152 { data_type => "integer
", default_value => 0, is_nullable => 0 },
165 __PACKAGE__->set_primary_key("issue_id
");
169 =head2 borrowernumber
173 Related object: L<Koha::Schema::Result::Borrower>
177 __PACKAGE__->belongs_to(
179 "Koha
::Schema
::Result
::Borrower
",
180 { borrowernumber => "borrowernumber
" },
184 on_delete => "SET NULL
",
185 on_update => "SET NULL
",
193 Related object: L<Koha::Schema::Result::Item>
197 __PACKAGE__->belongs_to(
199 "Koha
::Schema
::Result
::Item
",
200 { itemnumber => "itemnumber
" },
204 on_delete => "SET NULL
",
205 on_update => "SET NULL
",
210 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-23 13:04:51
211 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9GdzytyInRcFZns/q0qb3Q
214 # You can replace this text with custom content, and it will be preserved on regeneration