Lines 75-80
__PACKAGE__->table("opac_news");
Link Here
|
75 |
data_type: 'integer' |
75 |
data_type: 'integer' |
76 |
is_nullable: 1 |
76 |
is_nullable: 1 |
77 |
|
77 |
|
|
|
78 |
=head2 borrowernumber |
79 |
|
80 |
data_type: 'integer' |
81 |
is_foreign_key: 1 |
82 |
is_nullable: 1 |
83 |
|
78 |
=cut |
84 |
=cut |
79 |
|
85 |
|
80 |
__PACKAGE__->add_columns( |
86 |
__PACKAGE__->add_columns( |
Lines 104-109
__PACKAGE__->add_columns(
Link Here
|
104 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
110 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
105 |
"number", |
111 |
"number", |
106 |
{ data_type => "integer", is_nullable => 1 }, |
112 |
{ data_type => "integer", is_nullable => 1 }, |
|
|
113 |
"borrowernumber", |
114 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
107 |
); |
115 |
); |
108 |
|
116 |
|
109 |
=head1 PRIMARY KEY |
117 |
=head1 PRIMARY KEY |
Lines 120-125
__PACKAGE__->set_primary_key("idnew");
Link Here
|
120 |
|
128 |
|
121 |
=head1 RELATIONS |
129 |
=head1 RELATIONS |
122 |
|
130 |
|
|
|
131 |
=head2 borrowernumber |
132 |
|
133 |
Type: belongs_to |
134 |
|
135 |
Related object: L<Koha::Schema::Result::Borrower> |
136 |
|
137 |
=cut |
138 |
|
139 |
__PACKAGE__->belongs_to( |
140 |
"borrowernumber", |
141 |
"Koha::Schema::Result::Borrower", |
142 |
{ borrowernumber => "borrowernumber" }, |
143 |
{ |
144 |
is_deferrable => 1, |
145 |
join_type => "LEFT", |
146 |
on_delete => "SET NULL", |
147 |
on_update => "CASCADE", |
148 |
}, |
149 |
); |
150 |
|
123 |
=head2 branchcode |
151 |
=head2 branchcode |
124 |
|
152 |
|
125 |
Type: belongs_to |
153 |
Type: belongs_to |
Lines 141-148
__PACKAGE__->belongs_to(
Link Here
|
141 |
); |
169 |
); |
142 |
|
170 |
|
143 |
|
171 |
|
144 |
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-02-16 23:15:22 |
172 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-21 19:50:05 |
145 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/q+riAqsYmCQkUCUL9MU7g |
173 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QivH1Daozdp0BttbPF6CkA |
146 |
|
174 |
|
147 |
|
175 |
|
148 |
# You can replace this text with custom content, and it will be preserved on regeneration |
176 |
# You can replace this text with custom content, and it will be preserved on regeneration |
149 |
- |
|
|