Bug 17855 - Followup patch following requests in comments 176 and 177
[koha.git] / Koha / Schema / Result / Localization.pm
blobb5422ca8672a85f7d1d023aa21df348dceb89700
1 use utf8;
2 package Koha::Schema::Result::Localization;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Localization
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<localization>
20 =cut
22 __PACKAGE__->table("localization");
24 =head1 ACCESSORS
26 =head2 localization_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 entity
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 16
38 =head2 code
40 data_type: 'varchar'
41 is_nullable: 0
42 size: 64
44 =head2 lang
46 data_type: 'varchar'
47 is_nullable: 0
48 size: 25
50 =head2 translation
52 data_type: 'text'
53 is_nullable: 1
55 =cut
57 __PACKAGE__->add_columns(
58 "localization_id",
59 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60 "entity",
61 { data_type => "varchar", is_nullable => 0, size => 16 },
62 "code",
63 { data_type => "varchar", is_nullable => 0, size => 64 },
64 "lang",
65 { data_type => "varchar", is_nullable => 0, size => 25 },
66 "translation",
67 { data_type => "text", is_nullable => 1 },
70 =head1 PRIMARY KEY
72 =over 4
74 =item * L</localization_id>
76 =back
78 =cut
80 __PACKAGE__->set_primary_key("localization_id");
82 =head1 UNIQUE CONSTRAINTS
84 =head2 C<entity_code_lang>
86 =over 4
88 =item * L</entity>
90 =item * L</code>
92 =item * L</lang>
94 =back
96 =cut
98 __PACKAGE__->add_unique_constraint("entity_code_lang", ["entity", "code", "lang"]);
101 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-27 12:51:15
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bYEuhKEE13txmjNiRHk8tA
105 # You can replace this text with custom code or comments, and it will be preserved on regeneration