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

(-)a/Koha/Schema/Result/Collection.pm (-2 / +17 lines)
Lines 116-124 __PACKAGE__->belongs_to( Link Here
116
  },
116
  },
117
);
117
);
118
118
119
=head2 collections_trackings
119
120
120
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
121
Type: has_many
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Nx6GPmSO3ckjDmF7dz0DKA
122
123
Related object: L<Koha::Schema::Result::CollectionsTracking>
124
125
=cut
126
127
__PACKAGE__->has_many(
128
  "collections_trackings",
129
  "Koha::Schema::Result::CollectionsTracking",
130
  { "foreign.colId" => "self.colId" },
131
  { cascade_copy => 0, cascade_delete => 0 },
132
);
133
134
135
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-03-05 11:15:27
136
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rpcRZuYeV6k8GvddpikSSQ
122
137
123
138
124
# You can replace this text with custom content, and it will be preserved on regeneration
139
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CollectionsTracking.pm (-7 / +47 lines)
Lines 34-39 __PACKAGE__->table("collections_tracking"); Link Here
34
  accessor: 'col_id'
34
  accessor: 'col_id'
35
  data_type: 'integer'
35
  data_type: 'integer'
36
  default_value: 0
36
  default_value: 0
37
  is_foreign_key: 1
37
  is_nullable: 0
38
  is_nullable: 0
38
39
39
collections.colId
40
collections.colId
Lines 42-47 collections.colId Link Here
42
43
43
  data_type: 'integer'
44
  data_type: 'integer'
44
  default_value: 0
45
  default_value: 0
46
  is_foreign_key: 1
45
  is_nullable: 0
47
  is_nullable: 0
46
48
47
items.itemnumber
49
items.itemnumber
Lines 53-65 __PACKAGE__->add_columns( Link Here
53
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
55
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
54
  "colId",
56
  "colId",
55
  {
57
  {
56
    accessor      => "col_id",
58
    accessor       => "col_id",
57
    data_type     => "integer",
59
    data_type      => "integer",
58
    default_value => 0,
60
    default_value  => 0,
59
    is_nullable   => 0,
61
    is_foreign_key => 1,
62
    is_nullable    => 0,
60
  },
63
  },
61
  "itemnumber",
64
  "itemnumber",
62
  { data_type => "integer", default_value => 0, is_nullable => 0 },
65
  {
66
    data_type      => "integer",
67
    default_value  => 0,
68
    is_foreign_key => 1,
69
    is_nullable    => 0,
70
  },
63
);
71
);
64
72
65
=head1 PRIMARY KEY
73
=head1 PRIMARY KEY
Lines 74-82 __PACKAGE__->add_columns( Link Here
74
82
75
__PACKAGE__->set_primary_key("collections_tracking_id");
83
__PACKAGE__->set_primary_key("collections_tracking_id");
76
84
85
=head1 RELATIONS
86
87
=head2 col
88
89
Type: belongs_to
90
91
Related object: L<Koha::Schema::Result::Collection>
92
93
=cut
94
95
__PACKAGE__->belongs_to(
96
  "col",
97
  "Koha::Schema::Result::Collection",
98
  { colId => "colId" },
99
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100
);
101
102
=head2 itemnumber
103
104
Type: belongs_to
105
106
Related object: L<Koha::Schema::Result::Item>
107
108
=cut
109
110
__PACKAGE__->belongs_to(
111
  "itemnumber",
112
  "Koha::Schema::Result::Item",
113
  { itemnumber => "itemnumber" },
114
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
115
);
116
77
117
78
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
118
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-15 11:37:03
79
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s8ZFSmMJt313bz3XdlhITQ
119
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f69L8B7r/Rvyn0AZQbrJcw
80
120
81
121
82
# You can replace this text with custom code or comments, and it will be preserved on regeneration
122
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Item.pm (-3 / +17 lines)
Lines 511-516 __PACKAGE__->has_many( Link Here
511
  { cascade_copy => 0, cascade_delete => 0 },
511
  { cascade_copy => 0, cascade_delete => 0 },
512
);
512
);
513
513
514
=head2 collections_trackings
515
516
Type: has_many
517
518
Related object: L<Koha::Schema::Result::CollectionsTracking>
519
520
=cut
521
522
__PACKAGE__->has_many(
523
  "collections_trackings",
524
  "Koha::Schema::Result::CollectionsTracking",
525
  { "foreign.itemnumber" => "self.itemnumber" },
526
  { cascade_copy => 0, cascade_delete => 0 },
527
);
528
514
=head2 course_item
529
=head2 course_item
515
530
516
Type: might_have
531
Type: might_have
Lines 687-694 __PACKAGE__->might_have( Link Here
687
);
702
);
688
703
689
704
690
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-18 16:41:12
705
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-03-05 11:15:27
691
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CrNXvpDUvvcuPZK2Gfzs/Q
706
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+SVF41JJgpeEiLgy9KXznw
692
707
693
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
708
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
694
709
695
- 

Return to bug 18606