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

(-)a/Koha/Schema/Result/AuthorisedValue.pm (-3 / +25 lines)
Lines 33-38 __PACKAGE__->table("authorised_values"); Link Here
33
33
34
  data_type: 'varchar'
34
  data_type: 'varchar'
35
  default_value: (empty string)
35
  default_value: (empty string)
36
  is_foreign_key: 1
36
  is_nullable: 0
37
  is_nullable: 0
37
  size: 32
38
  size: 32
38
39
Lines 67-73 __PACKAGE__->add_columns( Link Here
67
  "id",
68
  "id",
68
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69
  "category",
70
  "category",
70
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 },
71
  {
72
    data_type => "varchar",
73
    default_value => "",
74
    is_foreign_key => 1,
75
    is_nullable => 0,
76
    size => 32,
77
  },
71
  "authorised_value",
78
  "authorised_value",
72
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
79
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
73
  "lib",
80
  "lib",
Lines 107-115 __PACKAGE__->has_many( Link Here
107
  { cascade_copy => 0, cascade_delete => 0 },
114
  { cascade_copy => 0, cascade_delete => 0 },
108
);
115
);
109
116
117
=head2 category
118
119
Type: belongs_to
120
121
Related object: L<Koha::Schema::Result::AuthorisedValueCategory>
122
123
=cut
124
125
__PACKAGE__->belongs_to(
126
  "category",
127
  "Koha::Schema::Result::AuthorisedValueCategory",
128
  { category_name => "category" },
129
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
130
);
131
110
132
111
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-29 11:50:45
133
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-30 11:52:45
112
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VtpTwYpCMG3VVmsrQspdxw
134
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LOArv8JQ0aiTZgcy+jb7pA
113
135
114
136
115
# You can replace this text with custom content, and it will be preserved on regeneration
137
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/AuthorisedValueCategory.pm (-5 / +20 lines)
Lines 26-39 __PACKAGE__->table("authorised_value_categories"); Link Here
26
=head2 category_name
26
=head2 category_name
27
27
28
  data_type: 'varchar'
28
  data_type: 'varchar'
29
  default_value: (empty string)
29
  is_nullable: 0
30
  is_nullable: 0
30
  size: 80
31
  size: 32
31
32
32
=cut
33
=cut
33
34
34
__PACKAGE__->add_columns(
35
__PACKAGE__->add_columns(
35
  "category_name",
36
  "category_name",
36
  { data_type => "varchar", is_nullable => 0, size => 80 },
37
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 },
37
);
38
);
38
39
39
=head1 PRIMARY KEY
40
=head1 PRIMARY KEY
Lines 50-55 __PACKAGE__->set_primary_key("category_name"); Link Here
50
51
51
=head1 RELATIONS
52
=head1 RELATIONS
52
53
54
=head2 authorised_values
55
56
Type: has_many
57
58
Related object: L<Koha::Schema::Result::AuthorisedValue>
59
60
=cut
61
62
__PACKAGE__->has_many(
63
  "authorised_values",
64
  "Koha::Schema::Result::AuthorisedValue",
65
  { "foreign.category" => "self.category_name" },
66
  { cascade_copy => 0, cascade_delete => 0 },
67
);
68
53
=head2 items_search_fields
69
=head2 items_search_fields
54
70
55
Type: has_many
71
Type: has_many
Lines 66-73 __PACKAGE__->has_many( Link Here
66
);
82
);
67
83
68
84
69
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-29 11:50:45
85
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-08-30 11:54:19
70
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fF91wGF5/xHvp8JX5fAAtw
86
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T8LzWM/O8zSGpRhTZbzvJA
71
87
72
88
73
# You can replace this text with custom code or comments, and it will be preserved on regeneration
89
# You can replace this text with custom code or comments, and it will be preserved on regeneration
74
- 

Return to bug 17216