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

(-)a/Koha/Schema/Result/ClassSource.pm (-2 / +33 lines)
Lines 49-54 __PACKAGE__->table("class_sources"); Link Here
49
  is_nullable: 0
49
  is_nullable: 0
50
  size: 10
50
  size: 10
51
51
52
=head2 class_split_rule
53
54
  data_type: 'varchar'
55
  default_value: (empty string)
56
  is_foreign_key: 1
57
  is_nullable: 0
58
  size: 10
59
52
=cut
60
=cut
53
61
54
__PACKAGE__->add_columns(
62
__PACKAGE__->add_columns(
Lines 66-71 __PACKAGE__->add_columns( Link Here
66
    is_nullable => 0,
74
    is_nullable => 0,
67
    size => 10,
75
    size => 10,
68
  },
76
  },
77
  "class_split_rule",
78
  {
79
    data_type => "varchar",
80
    default_value => "",
81
    is_foreign_key => 1,
82
    is_nullable => 0,
83
    size => 10,
84
  },
69
);
85
);
70
86
71
=head1 PRIMARY KEY
87
=head1 PRIMARY KEY
Lines 97-105 __PACKAGE__->belongs_to( Link Here
97
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
113
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
98
);
114
);
99
115
116
=head2 class_split_rule
117
118
Type: belongs_to
119
120
Related object: L<Koha::Schema::Result::ClassSplitRule>
121
122
=cut
123
124
__PACKAGE__->belongs_to(
125
  "class_split_rule",
126
  "Koha::Schema::Result::ClassSplitRule",
127
  { class_split_rule => "class_split_rule" },
128
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
129
);
130
100
131
101
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
132
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-08 16:33:27
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tu9NZrk0s8VBgtc1kNpXgg
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fB+fYXMevzvwogIhmVAlgA
103
134
104
135
105
# You can replace this text with custom content, and it will be preserved on regeneration
136
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/ClassSplitRule.pm (-1 / +100 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::ClassSplitRule;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::ClassSplitRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<class_split_rules>
19
20
=cut
21
22
__PACKAGE__->table("class_split_rules");
23
24
=head1 ACCESSORS
25
26
=head2 class_split_rule
27
28
  data_type: 'varchar'
29
  default_value: (empty string)
30
  is_nullable: 0
31
  size: 10
32
33
=head2 description
34
35
  data_type: 'longtext'
36
  is_nullable: 1
37
38
=head2 split_routine
39
40
  data_type: 'varchar'
41
  default_value: (empty string)
42
  is_nullable: 0
43
  size: 30
44
45
=head2 split_regex
46
47
  data_type: 'varchar'
48
  default_value: (empty string)
49
  is_nullable: 0
50
  size: 255
51
52
=cut
53
54
__PACKAGE__->add_columns(
55
  "class_split_rule",
56
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57
  "description",
58
  { data_type => "longtext", is_nullable => 1 },
59
  "split_routine",
60
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
61
  "split_regex",
62
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
63
);
64
65
=head1 PRIMARY KEY
66
67
=over 4
68
69
=item * L</class_split_rule>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("class_split_rule");
76
77
=head1 RELATIONS
78
79
=head2 class_sources
80
81
Type: has_many
82
83
Related object: L<Koha::Schema::Result::ClassSource>
84
85
=cut
86
87
__PACKAGE__->has_many(
88
  "class_sources",
89
  "Koha::Schema::Result::ClassSource",
90
  { "foreign.class_split_rule" => "self.class_split_rule" },
91
  { cascade_copy => 0, cascade_delete => 0 },
92
);
93
94
95
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-08 14:29:56
96
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nsH0stuc8YqVuaea2MDOfg
97
98
99
# You can replace this text with custom code or comments, and it will be preserved on regeneration
100
1;

Return to bug 15836