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

(-)a/Koha/Schema/Result/AuthorisedValue.pm (-2 / +17 lines)
Lines 129-137 __PACKAGE__->belongs_to( Link Here
129
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
129
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
130
);
130
);
131
131
132
=head2 illrequests
132
133
133
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-26 16:13:07
134
Type: has_many
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YwvGOd/jzk71ekWfO56xrw
135
136
Related object: L<Koha::Schema::Result::Illrequest>
137
138
=cut
139
140
__PACKAGE__->has_many(
141
  "illrequests",
142
  "Koha::Schema::Result::Illrequest",
143
  { "foreign.status_alias" => "self.id" },
144
  { cascade_copy => 0, cascade_delete => 0 },
145
);
146
147
148
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-05-15 15:13:30
149
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EZxmz4Wcr3Pi4fiYQCq49A
135
150
136
151
137
# You can replace this text with custom code or comments, and it will be preserved on regeneration
152
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Illrequest.pm (-3 / +30 lines)
Lines 119-124 __PACKAGE__->table("illrequests"); Link Here
119
  is_nullable: 1
119
  is_nullable: 1
120
  size: 20
120
  size: 20
121
121
122
=head2 status_alias
123
124
  data_type: 'integer'
125
  is_foreign_key: 1
126
  is_nullable: 1
127
122
=cut
128
=cut
123
129
124
__PACKAGE__->add_columns(
130
__PACKAGE__->add_columns(
Lines 164-169 __PACKAGE__->add_columns( Link Here
164
  { data_type => "varchar", is_nullable => 1, size => 50 },
170
  { data_type => "varchar", is_nullable => 1, size => 50 },
165
  "backend",
171
  "backend",
166
  { data_type => "varchar", is_nullable => 1, size => 20 },
172
  { data_type => "varchar", is_nullable => 1, size => 20 },
173
  "status_alias",
174
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
167
);
175
);
168
176
169
=head1 PRIMARY KEY
177
=head1 PRIMARY KEY
Lines 230-238 __PACKAGE__->has_many( Link Here
230
  { cascade_copy => 0, cascade_delete => 0 },
238
  { cascade_copy => 0, cascade_delete => 0 },
231
);
239
);
232
240
241
=head2 status_alias
242
243
Type: belongs_to
244
245
Related object: L<Koha::Schema::Result::AuthorisedValue>
246
247
=cut
248
249
__PACKAGE__->belongs_to(
250
  "status_alias",
251
  "Koha::Schema::Result::AuthorisedValue",
252
  { id => "status_alias" },
253
  {
254
    is_deferrable => 1,
255
    join_type     => "LEFT",
256
    on_delete     => "SET NULL",
257
    on_update     => "RESTRICT",
258
  },
259
);
260
233
261
234
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
262
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-05-15 15:13:30
235
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rh8DSs3xj3KRmyd7WNGDAg
263
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6QhckQiaGlBTB9TEPvXadg
236
264
237
265
238
# You can replace this text with custom code or comments, and it will be preserved on regeneration
266
# You can replace this text with custom code or comments, and it will be preserved on regeneration
239
- 

Return to bug 20581