View | Details | Raw Unified | Return to bug 14205
Collapse All | Expand All

(-)a/Koha/Schema/Result/CourseItem.pm (-2 / +17 lines)
Lines 133-138 __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); Link Here
133
133
134
=head1 RELATIONS
134
=head1 RELATIONS
135
135
136
=head2 course_reserves
137
138
Type: has_many
139
140
Related object: L<Koha::Schema::Result::CourseReserve>
141
142
=cut
143
144
__PACKAGE__->has_many(
145
  "course_reserves",
146
  "Koha::Schema::Result::CourseReserve",
147
  { "foreign.ci_id" => "self.ci_id" },
148
  { cascade_copy => 0, cascade_delete => 0 },
149
);
150
136
=head2 holdingbranch
151
=head2 holdingbranch
137
152
138
Type: belongs_to
153
Type: belongs_to
Lines 169-176 __PACKAGE__->belongs_to( Link Here
169
);
184
);
170
185
171
186
172
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
187
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-02 09:46:54
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iVWZfUWcPfrLdLdvjyvbow
188
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g5lEeHNvnM4KIb6AJUxDOw
174
189
175
190
176
# You can replace this text with custom content, and it will be preserved on regeneration
191
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CourseReserve.pm (-4 / +19 lines)
Lines 38-43 __PACKAGE__->table("course_reserves"); Link Here
38
=head2 ci_id
38
=head2 ci_id
39
39
40
  data_type: 'integer'
40
  data_type: 'integer'
41
  is_foreign_key: 1
41
  is_nullable: 0
42
  is_nullable: 0
42
43
43
=head2 staff_note
44
=head2 staff_note
Lines 65-71 __PACKAGE__->add_columns( Link Here
65
  "course_id",
66
  "course_id",
66
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
67
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
67
  "ci_id",
68
  "ci_id",
68
  { data_type => "integer", is_nullable => 0 },
69
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
69
  "staff_note",
70
  "staff_note",
70
  { data_type => "mediumtext", is_nullable => 1 },
71
  { data_type => "mediumtext", is_nullable => 1 },
71
  "public_note",
72
  "public_note",
Lines 109-114 __PACKAGE__->add_unique_constraint("pseudo_key", ["course_id", "ci_id"]); Link Here
109
110
110
=head1 RELATIONS
111
=head1 RELATIONS
111
112
113
=head2 ci
114
115
Type: belongs_to
116
117
Related object: L<Koha::Schema::Result::CourseItem>
118
119
=cut
120
121
__PACKAGE__->belongs_to(
122
  "ci",
123
  "Koha::Schema::Result::CourseItem",
124
  { ci_id => "ci_id" },
125
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
126
);
127
112
=head2 course
128
=head2 course
113
129
114
Type: belongs_to
130
Type: belongs_to
Lines 125-132 __PACKAGE__->belongs_to( Link Here
125
);
141
);
126
142
127
143
128
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
144
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-02 09:46:54
129
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SSTJhsNOuUlxr/CsDs08pQ
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4RbSgGvSM5wH1jpE+deLlA
130
146
131
147
132
# You can replace this text with custom content, and it will be preserved on regeneration
148
# You can replace this text with custom content, and it will be preserved on regeneration
133
- 

Return to bug 14205