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

(-)a/Koha/Schema/Result/OpacNews.pm (-3 / +33 lines)
Lines 30-35 __PACKAGE__->table("opac_news"); Link Here
30
  is_auto_increment: 1
30
  is_auto_increment: 1
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
=head2 branchcode
34
35
  data_type: 'varchar'
36
  is_foreign_key: 1
37
  is_nullable: 1
38
  size: 10
39
33
=head2 title
40
=head2 title
34
41
35
  data_type: 'varchar'
42
  data_type: 'varchar'
Lines 78-83 __PACKAGE__->add_columns( Link Here
78
    is_auto_increment => 1,
85
    is_auto_increment => 1,
79
    is_nullable => 0,
86
    is_nullable => 0,
80
  },
87
  },
88
  "branchcode",
89
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
81
  "title",
90
  "title",
82
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 },
91
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 },
83
  "new",
92
  "new",
Lines 109-117 __PACKAGE__->add_columns( Link Here
109
118
110
__PACKAGE__->set_primary_key("idnew");
119
__PACKAGE__->set_primary_key("idnew");
111
120
121
=head1 RELATIONS
122
123
=head2 branchcode
124
125
Type: belongs_to
126
127
Related object: L<Koha::Schema::Result::Branch>
128
129
=cut
130
131
__PACKAGE__->belongs_to(
132
  "branchcode",
133
  "Koha::Schema::Result::Branch",
134
  { branchcode => "branchcode" },
135
  {
136
    is_deferrable => 1,
137
    join_type     => "LEFT",
138
    on_delete     => "CASCADE",
139
    on_update     => "CASCADE",
140
  },
141
);
142
112
143
113
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
144
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-02-16 23:15:22
114
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0tkil0XyRwcT+abM2XoADw
145
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/q+riAqsYmCQkUCUL9MU7g
115
146
116
147
117
# You can replace this text with custom content, and it will be preserved on regeneration
148
# You can replace this text with custom content, and it will be preserved on regeneration
118
- 

Return to bug 7567