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

(-)a/Koha/Schema/Result/Booking.pm (-11 / +5 lines)
Lines 61-67 foreign key from the items table defining the specific item the patron has place Link Here
61
61
62
  data_type: 'varchar'
62
  data_type: 'varchar'
63
  is_foreign_key: 1
63
  is_foreign_key: 1
64
  is_nullable: 1
64
  is_nullable: 0
65
  size: 10
65
  size: 10
66
66
67
Identifier for booking pickup library
67
Identifier for booking pickup library
Lines 104-110 __PACKAGE__->add_columns( Link Here
104
  "item_id",
104
  "item_id",
105
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
105
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
106
  "pickup_library_id",
106
  "pickup_library_id",
107
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
107
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
108
  "start_date",
108
  "start_date",
109
  {
109
  {
110
    data_type => "datetime",
110
    data_type => "datetime",
Lines 195-211 __PACKAGE__->belongs_to( Link Here
195
  "pickup_library",
195
  "pickup_library",
196
  "Koha::Schema::Result::Branch",
196
  "Koha::Schema::Result::Branch",
197
  { branchcode => "pickup_library_id" },
197
  { branchcode => "pickup_library_id" },
198
  {
198
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
199
    is_deferrable => 1,
200
    join_type     => "LEFT",
201
    on_delete     => "CASCADE",
202
    on_update     => "CASCADE",
203
  },
204
);
199
);
205
200
206
201
207
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-03-07 17:07:54
202
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-03-21 10:19:45
208
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IEYMaWaOX+bQpm36pdTfyg
203
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Huc+T/8gRHH4XQzueRAfTw
209
204
210
205
211
# You can replace this text with custom code or comments, and it will be preserved on regeneration
206
# You can replace this text with custom code or comments, and it will be preserved on regeneration
212
- 

Return to bug 36120