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

(-)a/Koha/Schema/Result/Branch.pm (+17 lines)
Lines 436-441 __PACKAGE__->has_many( Link Here
436
  { cascade_copy => 0, cascade_delete => 0 },
436
  { cascade_copy => 0, cascade_delete => 0 },
437
);
437
);
438
438
439
=head2 cms_pages
440
441
Type: has_many
442
443
Related object: L<Koha::Schema::Result::CmsPage>
444
445
=cut
446
447
__PACKAGE__->has_many(
448
  "cms_pages",
449
  "Koha::Schema::Result::CmsPage",
450
  { "foreign.branchcode" => "self.branchcode" },
451
  { cascade_copy => 0, cascade_delete => 0 },
452
);
453
439
=head2 collections
454
=head2 collections
440
455
441
Type: has_many
456
Type: has_many
Lines 680-685 __PACKAGE__->has_many( Link Here
680
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-11 12:56:41
695
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-11 12:56:41
681
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pKohWwsuUHcZSlGDj7zmcw
696
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pKohWwsuUHcZSlGDj7zmcw
682
697
698
# You can replace this text with custom code or comments, and it will be preserved on regeneration
699
683
__PACKAGE__->add_columns(
700
__PACKAGE__->add_columns(
684
    '+pickup_location' => { is_boolean => 1 }
701
    '+pickup_location' => { is_boolean => 1 }
685
);
702
);
(-)a/Koha/Schema/Result/CmsPage.pm (-1 / +150 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::CmsPage;
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::CmsPage
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<cms_pages>
19
20
=cut
21
22
__PACKAGE__->table("cms_pages");
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 parent
33
34
  data_type: 'integer'
35
  is_nullable: 1
36
37
=head2 branchcode
38
39
  data_type: 'varchar'
40
  is_foreign_key: 1
41
  is_nullable: 1
42
  size: 10
43
44
=head2 lang
45
46
  data_type: 'varchar'
47
  default_value: (empty string)
48
  is_nullable: 0
49
  size: 25
50
51
=head2 title
52
53
  data_type: 'varchar'
54
  is_nullable: 1
55
  size: 255
56
57
=head2 title_link
58
59
  data_type: 'varchar'
60
  is_nullable: 1
61
  size: 64
62
63
=head2 sortorder
64
65
  data_type: 'integer'
66
  default_value: 0
67
  is_nullable: 0
68
69
=head2 location
70
71
  data_type: 'tinyint'
72
  is_nullable: 1
73
74
=head2 publish
75
76
  data_type: 'tinyint'
77
  default_value: 0
78
  is_nullable: 0
79
80
=head2 content
81
82
  data_type: 'text'
83
  is_nullable: 1
84
85
=cut
86
87
__PACKAGE__->add_columns(
88
  "id",
89
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
90
  "parent",
91
  { data_type => "integer", is_nullable => 1 },
92
  "branchcode",
93
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
94
  "lang",
95
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
96
  "title",
97
  { data_type => "varchar", is_nullable => 1, size => 255 },
98
  "title_link",
99
  { data_type => "varchar", is_nullable => 1, size => 64 },
100
  "sortorder",
101
  { data_type => "integer", default_value => 0, is_nullable => 0 },
102
  "location",
103
  { data_type => "tinyint", is_nullable => 1 },
104
  "publish",
105
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
106
  "content",
107
  { data_type => "text", is_nullable => 1 },
108
);
109
110
=head1 PRIMARY KEY
111
112
=over 4
113
114
=item * L</id>
115
116
=back
117
118
=cut
119
120
__PACKAGE__->set_primary_key("id");
121
122
=head1 RELATIONS
123
124
=head2 branchcode
125
126
Type: belongs_to
127
128
Related object: L<Koha::Schema::Result::Branch>
129
130
=cut
131
132
__PACKAGE__->belongs_to(
133
  "branchcode",
134
  "Koha::Schema::Result::Branch",
135
  { branchcode => "branchcode" },
136
  {
137
    is_deferrable => 1,
138
    join_type     => "LEFT",
139
    on_delete     => "CASCADE",
140
    on_update     => "CASCADE",
141
  },
142
);
143
144
145
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-12 02:41:09
146
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9044j1OZyypCpGV71FgvYg
147
148
149
# You can replace this text with custom code or comments, and it will be preserved on regeneration
150
1;

Return to bug 15326