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

(-)a/Koha/Schema/Result/Letter.pm (-2 / +17 lines)
Lines 201-206 __PACKAGE__->add_unique_constraint( Link Here
201
201
202
=head1 RELATIONS
202
=head1 RELATIONS
203
203
204
=head2 message_queues
205
206
Type: has_many
207
208
Related object: L<Koha::Schema::Result::MessageQueue>
209
210
=cut
211
212
__PACKAGE__->has_many(
213
  "message_queues",
214
  "Koha::Schema::Result::MessageQueue",
215
  { "foreign.letter_id" => "self.id" },
216
  { cascade_copy => 0, cascade_delete => 0 },
217
);
218
204
=head2 message_transport_type
219
=head2 message_transport_type
205
220
206
Type: belongs_to
221
Type: belongs_to
Lines 217-224 __PACKAGE__->belongs_to( Link Here
217
);
232
);
218
233
219
234
220
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-02-11 12:33:50
235
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-26 16:03:55
221
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qqdTVEicMu5rHppY5qsEuA
236
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sDvzoretV6pgwNN1G6BzcA
222
237
223
sub koha_object_class {
238
sub koha_object_class {
224
    'Koha::Notice::Template';
239
    'Koha::Notice::Template';
(-)a/Koha/Schema/Result/MessageQueue.pm (-3 / +30 lines)
Lines 29-34 __PACKAGE__->table("message_queue"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
=head2 letter_id
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 1
37
32
=head2 borrowernumber
38
=head2 borrowernumber
33
39
34
  data_type: 'integer'
40
  data_type: 'integer'
Lines 113-118 __PACKAGE__->table("message_queue"); Link Here
113
__PACKAGE__->add_columns(
119
__PACKAGE__->add_columns(
114
  "message_id",
120
  "message_id",
115
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
121
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
122
  "letter_id",
123
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
116
  "borrowernumber",
124
  "borrowernumber",
117
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
125
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
118
  "subject",
126
  "subject",
Lines 191-196 __PACKAGE__->belongs_to( Link Here
191
  },
199
  },
192
);
200
);
193
201
202
=head2 letter
203
204
Type: belongs_to
205
206
Related object: L<Koha::Schema::Result::Letter>
207
208
=cut
209
210
__PACKAGE__->belongs_to(
211
  "letter",
212
  "Koha::Schema::Result::Letter",
213
  { id => "letter_id" },
214
  {
215
    is_deferrable => 1,
216
    join_type     => "LEFT",
217
    on_delete     => "SET NULL",
218
    on_update     => "CASCADE",
219
  },
220
);
221
194
=head2 message_transport_type
222
=head2 message_transport_type
195
223
196
Type: belongs_to
224
Type: belongs_to
Lines 207-214 __PACKAGE__->belongs_to( Link Here
207
);
235
);
208
236
209
237
210
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-08-05 08:57:36
238
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-26 16:03:55
211
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NwbN8wPMAlucrw6iQ2XQ5g
239
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cnZ/YPx4BDhg2RLg0h65PA
212
240
213
sub koha_object_class {
241
sub koha_object_class {
214
    'Koha::Notice::Message';
242
    'Koha::Notice::Message';
215
- 

Return to bug 31626