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

(-)a/Koha/Schema/Result/MarcMergeRule.pm (-110 lines)
Lines 1-110 Link Here
1
use utf8;
2
package Koha::Schema::Result::MarcMergeRule;
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::MarcMergeRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<marc_merge_rules>
19
20
=cut
21
22
__PACKAGE__->table("marc_merge_rules");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 tag
33
34
  data_type: 'varchar'
35
  is_nullable: 0
36
  size: 255
37
38
=head2 module
39
40
  data_type: 'varchar'
41
  is_nullable: 0
42
  size: 127
43
44
=head2 filter
45
46
  data_type: 'varchar'
47
  is_nullable: 0
48
  size: 255
49
50
=head2 add
51
52
  data_type: 'tinyint'
53
  is_nullable: 0
54
55
=head2 append
56
57
  data_type: 'tinyint'
58
  is_nullable: 0
59
60
=head2 remove
61
62
  data_type: 'tinyint'
63
  is_nullable: 0
64
65
=head2 delete
66
67
  accessor: undef
68
  data_type: 'tinyint'
69
  is_nullable: 0
70
71
=cut
72
73
__PACKAGE__->add_columns(
74
  "id",
75
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
76
  "tag",
77
  { data_type => "varchar", is_nullable => 0, size => 255 },
78
  "module",
79
  { data_type => "varchar", is_nullable => 0, size => 127 },
80
  "filter",
81
  { data_type => "varchar", is_nullable => 0, size => 255 },
82
  "add",
83
  { data_type => "tinyint", is_nullable => 0 },
84
  "append",
85
  { data_type => "tinyint", is_nullable => 0 },
86
  "remove",
87
  { data_type => "tinyint", is_nullable => 0 },
88
  "delete",
89
  { accessor => undef, data_type => "tinyint", is_nullable => 0 },
90
);
91
92
=head1 PRIMARY KEY
93
94
=over 4
95
96
=item * L</id>
97
98
=back
99
100
=cut
101
102
__PACKAGE__->set_primary_key("id");
103
104
105
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-02-10 16:31:43
106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jdTzjEX0dUsXzK7LtlOS9w
107
108
109
# You can replace this text with custom code or comments, and it will be preserved on regeneration
110
1;
(-)a/Koha/Schema/Result/MarcOverlayRule.pm (+142 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::MarcOverlayRule;
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::MarcOverlayRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<marc_overlay_rules>
19
20
=cut
21
22
__PACKAGE__->table("marc_overlay_rules");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 tag
33
34
  data_type: 'varchar'
35
  is_nullable: 0
36
  size: 255
37
38
=head2 module
39
40
  data_type: 'varchar'
41
  is_foreign_key: 1
42
  is_nullable: 0
43
  size: 127
44
45
=head2 filter
46
47
  data_type: 'varchar'
48
  is_nullable: 0
49
  size: 255
50
51
=head2 add
52
53
  data_type: 'tinyint'
54
  default_value: 0
55
  is_nullable: 0
56
57
=head2 append
58
59
  data_type: 'tinyint'
60
  default_value: 0
61
  is_nullable: 0
62
63
=head2 remove
64
65
  data_type: 'tinyint'
66
  default_value: 0
67
  is_nullable: 0
68
69
=head2 delete
70
71
  accessor: undef
72
  data_type: 'tinyint'
73
  default_value: 0
74
  is_nullable: 0
75
76
=cut
77
78
__PACKAGE__->add_columns(
79
  "id",
80
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
81
  "tag",
82
  { data_type => "varchar", is_nullable => 0, size => 255 },
83
  "module",
84
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 127 },
85
  "filter",
86
  { data_type => "varchar", is_nullable => 0, size => 255 },
87
  "add",
88
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
89
  "append",
90
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
91
  "remove",
92
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
93
  "delete",
94
  {
95
    accessor      => undef,
96
    data_type     => "tinyint",
97
    default_value => 0,
98
    is_nullable   => 0,
99
  },
100
);
101
102
=head1 PRIMARY KEY
103
104
=over 4
105
106
=item * L</id>
107
108
=back
109
110
=cut
111
112
__PACKAGE__->set_primary_key("id");
113
114
=head1 RELATIONS
115
116
=head2 module
117
118
Type: belongs_to
119
120
Related object: L<Koha::Schema::Result::MarcOverlayRulesModule>
121
122
=cut
123
124
__PACKAGE__->belongs_to(
125
  "module",
126
  "Koha::Schema::Result::MarcOverlayRulesModule",
127
  { name => "module" },
128
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
129
);
130
131
132
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-03-26 17:56:31
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zSQHbrkBihPcEkzjW1M2bg
134
135
__PACKAGE__->add_columns(
136
    '+add'    => { is_boolean => 1 },
137
    '+append' => { is_boolean => 1 },
138
    '+remove' => { is_boolean => 1 },
139
    '+delete' => { is_boolean => 1 }
140
);
141
142
1;
(-)a/Koha/Schema/Result/MarcOverlayRulesModule.pm (-1 / +103 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::MarcOverlayRulesModule;
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::MarcOverlayRulesModule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<marc_overlay_rules_modules>
19
20
=cut
21
22
__PACKAGE__->table("marc_overlay_rules_modules");
23
24
=head1 ACCESSORS
25
26
=head2 name
27
28
  data_type: 'varchar'
29
  is_nullable: 0
30
  size: 127
31
32
=head2 description
33
34
  data_type: 'varchar'
35
  is_nullable: 1
36
  size: 255
37
38
=head2 specificity
39
40
  data_type: 'integer'
41
  is_nullable: 0
42
43
=cut
44
45
__PACKAGE__->add_columns(
46
  "name",
47
  { data_type => "varchar", is_nullable => 0, size => 127 },
48
  "description",
49
  { data_type => "varchar", is_nullable => 1, size => 255 },
50
  "specificity",
51
  { data_type => "integer", is_nullable => 0 },
52
);
53
54
=head1 PRIMARY KEY
55
56
=over 4
57
58
=item * L</name>
59
60
=back
61
62
=cut
63
64
__PACKAGE__->set_primary_key("name");
65
66
=head1 UNIQUE CONSTRAINTS
67
68
=head2 C<specificity>
69
70
=over 4
71
72
=item * L</specificity>
73
74
=back
75
76
=cut
77
78
__PACKAGE__->add_unique_constraint("specificity", ["specificity"]);
79
80
=head1 RELATIONS
81
82
=head2 marc_overlay_rules
83
84
Type: has_many
85
86
Related object: L<Koha::Schema::Result::MarcOverlayRule>
87
88
=cut
89
90
__PACKAGE__->has_many(
91
  "marc_overlay_rules",
92
  "Koha::Schema::Result::MarcOverlayRule",
93
  { "foreign.module" => "self.name" },
94
  { cascade_copy => 0, cascade_delete => 0 },
95
);
96
97
98
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-03-26 17:50:29
99
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NcP7xFRa7qXyck6wIQg/YQ
100
101
102
# You can replace this text with custom code or comments, and it will be preserved on regeneration
103
1;

Return to bug 14957