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

(-)a/Koha/Schema/Result/AccountOffset.pm (-2 / +31 lines)
Lines 61-66 __PACKAGE__->table("account_offsets"); Link Here
61
  default_value: current_timestamp
61
  default_value: current_timestamp
62
  is_nullable: 0
62
  is_nullable: 0
63
63
64
=head2 transaction_library
65
66
  data_type: 'varchar'
67
  is_foreign_key: 1
68
  is_nullable: 1
69
  size: 10
70
64
=cut
71
=cut
65
72
66
__PACKAGE__->add_columns(
73
__PACKAGE__->add_columns(
Lines 81-86 __PACKAGE__->add_columns( Link Here
81
    default_value => \"current_timestamp",
88
    default_value => \"current_timestamp",
82
    is_nullable => 0,
89
    is_nullable => 0,
83
  },
90
  },
91
  "transaction_library",
92
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
84
);
93
);
85
94
86
=head1 PRIMARY KEY
95
=head1 PRIMARY KEY
Lines 137-142 __PACKAGE__->belongs_to( Link Here
137
  },
146
  },
138
);
147
);
139
148
149
=head2 transaction_library
150
151
Type: belongs_to
152
153
Related object: L<Koha::Schema::Result::Branch>
154
155
=cut
156
157
__PACKAGE__->belongs_to(
158
  "transaction_library",
159
  "Koha::Schema::Result::Branch",
160
  { branchcode => "transaction_library" },
161
  {
162
    is_deferrable => 1,
163
    join_type     => "LEFT",
164
    on_delete     => "CASCADE",
165
    on_update     => "CASCADE",
166
  },
167
);
168
140
=head2 type
169
=head2 type
141
170
142
Type: belongs_to
171
Type: belongs_to
Lines 153-160 __PACKAGE__->belongs_to( Link Here
153
);
182
);
154
183
155
184
156
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-20 16:27:04
185
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-24 06:47:56
157
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tPPrIug2c7PbDO7LCxCJAA
186
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:l4H08mo7riljgHp4ao3uzA
158
187
159
188
160
# You can replace this text with custom code or comments, and it will be preserved on regeneration
189
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branch.pm (-3 / +17 lines)
Lines 211-216 __PACKAGE__->set_primary_key("branchcode"); Link Here
211
211
212
=head1 RELATIONS
212
=head1 RELATIONS
213
213
214
=head2 account_offsets
215
216
Type: has_many
217
218
Related object: L<Koha::Schema::Result::AccountOffset>
219
220
=cut
221
222
__PACKAGE__->has_many(
223
  "account_offsets",
224
  "Koha::Schema::Result::AccountOffset",
225
  { "foreign.transaction_library" => "self.branchcode" },
226
  { cascade_copy => 0, cascade_delete => 0 },
227
);
228
214
=head2 aqbaskets
229
=head2 aqbaskets
215
230
216
Type: has_many
231
Type: has_many
Lines 617-624 __PACKAGE__->has_many( Link Here
617
);
632
);
618
633
619
634
620
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-06 16:28:49
635
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-24 06:47:56
621
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N0tdcSAb4bMht/i0chipYQ
636
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5gFVB/eeFmxQ65hgjr1ygQ
622
637
623
638
624
# You can replace this text with custom code or comments, and it will be preserved on regeneration
639
# You can replace this text with custom code or comments, and it will be preserved on regeneration
625
- 

Return to bug 21401