|
Lines 1-21
Link Here
|
| 1 |
use utf8; |
|
|
| 2 |
package Koha::Schema::Result::OpacNews; |
1 |
package Koha::Schema::Result::OpacNews; |
| 3 |
|
2 |
|
| 4 |
# Created by DBIx::Class::Schema::Loader |
3 |
# Created by DBIx::Class::Schema::Loader |
| 5 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
4 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
| 6 |
|
5 |
|
| 7 |
=head1 NAME |
|
|
| 8 |
|
| 9 |
Koha::Schema::Result::OpacNews |
| 10 |
|
| 11 |
=cut |
| 12 |
|
| 13 |
use strict; |
6 |
use strict; |
| 14 |
use warnings; |
7 |
use warnings; |
| 15 |
|
8 |
|
| 16 |
use base 'DBIx::Class::Core'; |
9 |
use base 'DBIx::Class::Core'; |
| 17 |
|
10 |
|
| 18 |
=head1 TABLE: C<opac_news> |
11 |
|
|
|
12 |
=head1 NAME |
| 13 |
|
| 14 |
Koha::Schema::Result::OpacNews |
| 19 |
|
15 |
|
| 20 |
=cut |
16 |
=cut |
| 21 |
|
17 |
|
|
Lines 30-35
__PACKAGE__->table("opac_news");
Link Here
|
| 30 |
is_auto_increment: 1 |
26 |
is_auto_increment: 1 |
| 31 |
is_nullable: 0 |
27 |
is_nullable: 0 |
| 32 |
|
28 |
|
|
|
29 |
=head2 branchcode |
| 30 |
|
| 31 |
data_type: 'varchar' |
| 32 |
is_foreign_key: 1 |
| 33 |
is_nullable: 1 |
| 34 |
size: 10 |
| 35 |
|
| 33 |
=head2 title |
36 |
=head2 title |
| 34 |
|
37 |
|
| 35 |
data_type: 'varchar' |
38 |
data_type: 'varchar' |
|
Lines 78-83
__PACKAGE__->add_columns(
Link Here
|
| 78 |
is_auto_increment => 1, |
81 |
is_auto_increment => 1, |
| 79 |
is_nullable => 0, |
82 |
is_nullable => 0, |
| 80 |
}, |
83 |
}, |
|
|
84 |
"branchcode", |
| 85 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
| 81 |
"title", |
86 |
"title", |
| 82 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 250 }, |
87 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 250 }, |
| 83 |
"new", |
88 |
"new", |
|
Lines 96-117
__PACKAGE__->add_columns(
Link Here
|
| 96 |
"number", |
101 |
"number", |
| 97 |
{ data_type => "integer", is_nullable => 1 }, |
102 |
{ data_type => "integer", is_nullable => 1 }, |
| 98 |
); |
103 |
); |
|
|
104 |
__PACKAGE__->set_primary_key("idnew"); |
| 99 |
|
105 |
|
| 100 |
=head1 PRIMARY KEY |
106 |
=head1 RELATIONS |
| 101 |
|
107 |
|
| 102 |
=over 4 |
108 |
=head2 branchcode |
| 103 |
|
109 |
|
| 104 |
=item * L</idnew> |
110 |
Type: belongs_to |
| 105 |
|
111 |
|
| 106 |
=back |
112 |
Related object: L<Koha::Schema::Result::Branch> |
| 107 |
|
113 |
|
| 108 |
=cut |
114 |
=cut |
| 109 |
|
115 |
|
| 110 |
__PACKAGE__->set_primary_key("idnew"); |
116 |
__PACKAGE__->belongs_to( |
|
|
117 |
"branchcode", |
| 118 |
"Koha::Schema::Result::Branch", |
| 119 |
{ branchcode => "branchcode" }, |
| 120 |
{ |
| 121 |
is_deferrable => 1, |
| 122 |
join_type => "LEFT", |
| 123 |
on_delete => "CASCADE", |
| 124 |
on_update => "CASCADE", |
| 125 |
}, |
| 126 |
); |
| 111 |
|
127 |
|
| 112 |
|
128 |
|
| 113 |
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 |
129 |
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2014-02-16 22:39:45 |
| 114 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0tkil0XyRwcT+abM2XoADw |
130 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fY5jhUWaod31rJ9mx4xYyw |
| 115 |
|
131 |
|
| 116 |
|
132 |
|
| 117 |
# You can replace this text with custom content, and it will be preserved on regeneration |
133 |
# You can replace this text with custom content, and it will be preserved on regeneration |
| 118 |
- |
|
|