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

(-)a/Koha/Schema/Result/Item.pm (-2 / +17 lines)
Lines 555-560 __PACKAGE__->might_have( Link Here
555
  { cascade_copy => 0, cascade_delete => 0 },
555
  { cascade_copy => 0, cascade_delete => 0 },
556
);
556
);
557
557
558
=head2 items_last_borrower
559
560
Type: might_have
561
562
Related object: L<Koha::Schema::Result::ItemsLastBorrower>
563
564
=cut
565
566
__PACKAGE__->might_have(
567
  "items_last_borrower",
568
  "Koha::Schema::Result::ItemsLastBorrower",
569
  { "foreign.itemnumber" => "self.itemnumber" },
570
  { cascade_copy => 0, cascade_delete => 0 },
571
);
572
558
=head2 old_issues
573
=head2 old_issues
559
574
560
Type: has_many
575
Type: has_many
Lines 616-623 __PACKAGE__->might_have( Link Here
616
);
631
);
617
632
618
633
619
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-11-04 12:00:58
634
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 12:00:28
620
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jkgJfulDrGaUpQ6jC40vpQ
635
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3M6BvB4ATsBXgQCkFKuI3A
621
636
622
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
637
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
623
638
(-)a/Koha/Schema/Result/Overduerule.pm (-7 / +26 lines)
Lines 23-28 __PACKAGE__->table("overduerules"); Link Here
23
23
24
=head1 ACCESSORS
24
=head1 ACCESSORS
25
25
26
=head2 overduerules_id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
26
=head2 branchcode
32
=head2 branchcode
27
33
28
  data_type: 'varchar'
34
  data_type: 'varchar'
Lines 93-98 __PACKAGE__->table("overduerules"); Link Here
93
=cut
99
=cut
94
100
95
__PACKAGE__->add_columns(
101
__PACKAGE__->add_columns(
102
  "overduerules_id",
103
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
96
  "branchcode",
104
  "branchcode",
97
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
105
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
98
  "categorycode",
106
  "categorycode",
Lines 121-126 __PACKAGE__->add_columns( Link Here
121
129
122
=over 4
130
=over 4
123
131
132
=item * L</overduerules_id>
133
134
=back
135
136
=cut
137
138
__PACKAGE__->set_primary_key("overduerules_id");
139
140
=head1 UNIQUE CONSTRAINTS
141
142
=head2 C<overduerules_branch_cat>
143
144
=over 4
145
124
=item * L</branchcode>
146
=item * L</branchcode>
125
147
126
=item * L</categorycode>
148
=item * L</categorycode>
Lines 129-135 __PACKAGE__->add_columns( Link Here
129
151
130
=cut
152
=cut
131
153
132
__PACKAGE__->set_primary_key("branchcode", "categorycode");
154
__PACKAGE__->add_unique_constraint("overduerules_branch_cat", ["branchcode", "categorycode"]);
133
155
134
=head1 RELATIONS
156
=head1 RELATIONS
135
157
Lines 144-159 Related object: L<Koha::Schema::Result::OverduerulesTransportType> Link Here
144
__PACKAGE__->has_many(
166
__PACKAGE__->has_many(
145
  "overduerules_transport_types",
167
  "overduerules_transport_types",
146
  "Koha::Schema::Result::OverduerulesTransportType",
168
  "Koha::Schema::Result::OverduerulesTransportType",
147
  {
169
  { "foreign.overduerules_id" => "self.overduerules_id" },
148
    "foreign.branchcode"   => "self.branchcode",
149
    "foreign.categorycode" => "self.categorycode",
150
  },
151
  { cascade_copy => 0, cascade_delete => 0 },
170
  { cascade_copy => 0, cascade_delete => 0 },
152
);
171
);
153
172
154
173
155
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-02 18:04:32
174
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 12:00:28
156
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zQK4gTxkrPPwJzujbZxxdg
175
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Opfa1YZ3IeQRRbyrbKAkNQ
157
176
158
177
159
# You can replace this text with custom content, and it will be preserved on regeneration
178
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OverduerulesTransportType.pm (-41 / +9 lines)
Lines 29-87 __PACKAGE__->table("overduerules_transport_types"); Link Here
29
  is_auto_increment: 1
29
  is_auto_increment: 1
30
  is_nullable: 0
30
  is_nullable: 0
31
31
32
=head2 branchcode
32
=head2 message_transport_type
33
34
  data_type: 'varchar'
35
  default_value: (empty string)
36
  is_foreign_key: 1
37
  is_nullable: 0
38
  size: 10
39
40
=head2 categorycode
41
33
42
  data_type: 'varchar'
34
  data_type: 'varchar'
43
  default_value: (empty string)
35
  default_value: 'email'
44
  is_foreign_key: 1
36
  is_foreign_key: 1
45
  is_nullable: 0
37
  is_nullable: 0
46
  size: 10
38
  size: 20
47
39
48
=head2 letternumber
40
=head2 overduerules_id
49
41
50
  data_type: 'integer'
42
  data_type: 'integer'
51
  default_value: 1
52
  is_nullable: 0
53
54
=head2 message_transport_type
55
56
  data_type: 'varchar'
57
  default_value: 'email'
58
  is_foreign_key: 1
43
  is_foreign_key: 1
59
  is_nullable: 0
44
  is_nullable: 0
60
  size: 20
61
45
62
=cut
46
=cut
63
47
64
__PACKAGE__->add_columns(
48
__PACKAGE__->add_columns(
65
  "id",
49
  "id",
66
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
50
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
67
  "branchcode",
68
  {
69
    data_type => "varchar",
70
    default_value => "",
71
    is_foreign_key => 1,
72
    is_nullable => 0,
73
    size => 10,
74
  },
75
  "categorycode",
76
  {
77
    data_type => "varchar",
78
    default_value => "",
79
    is_foreign_key => 1,
80
    is_nullable => 0,
81
    size => 10,
82
  },
83
  "letternumber",
84
  { data_type => "integer", default_value => 1, is_nullable => 0 },
85
  "message_transport_type",
51
  "message_transport_type",
86
  {
52
  {
87
    data_type => "varchar",
53
    data_type => "varchar",
Lines 90-95 __PACKAGE__->add_columns( Link Here
90
    is_nullable => 0,
56
    is_nullable => 0,
91
    size => 20,
57
    size => 20,
92
  },
58
  },
59
  "overduerules_id",
60
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
93
);
61
);
94
62
95
=head1 PRIMARY KEY
63
=head1 PRIMARY KEY
Lines 132-144 Related object: L<Koha::Schema::Result::Overduerule> Link Here
132
__PACKAGE__->belongs_to(
100
__PACKAGE__->belongs_to(
133
  "overduerule",
101
  "overduerule",
134
  "Koha::Schema::Result::Overduerule",
102
  "Koha::Schema::Result::Overduerule",
135
  { branchcode => "branchcode", categorycode => "categorycode" },
103
  { overduerules_id => "overduerules_id" },
136
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
104
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
137
);
105
);
138
106
139
107
140
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-02 18:04:32
108
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 12:00:28
141
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mNvLssJ8h9WFNQaB+YCGYg
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KYpSfCfzkLxRYI2pQY5Htg
142
110
143
111
144
# You can replace this text with custom code or comments, and it will be preserved on regeneration
112
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Serial.pm (-3 / +2 lines)
Lines 179-186 __PACKAGE__->has_many( Link Here
179
);
179
);
180
180
181
181
182
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-12-31 11:56:58
182
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 12:19:30
183
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nJ8tcbP/wWWbIic0hSUmBA
183
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZwOGHLaGRVFow9J/DeKSGg
184
184
185
185
186
# You can replace this text with custom code or comments, and it will be preserved on regeneration
186
# You can replace this text with custom code or comments, and it will be preserved on regeneration
187
- 

Return to bug 15478