From dca6b23302e22070275c6c3a98c84121099f51f7 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 27 Oct 2015 12:52:22 -0300 Subject: [PATCH] Bug 14100: (RM followup) DBIx update Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Localization.pm | 106 +++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Koha/Schema/Result/Localization.pm diff --git a/Koha/Schema/Result/Localization.pm b/Koha/Schema/Result/Localization.pm new file mode 100644 index 0000000000..b5422ca867 --- /dev/null +++ b/Koha/Schema/Result/Localization.pm @@ -0,0 +1,106 @@ +use utf8; +package Koha::Schema::Result::Localization; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::Localization + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("localization"); + +=head1 ACCESSORS + +=head2 localization_id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 entity + + data_type: 'varchar' + is_nullable: 0 + size: 16 + +=head2 code + + data_type: 'varchar' + is_nullable: 0 + size: 64 + +=head2 lang + + data_type: 'varchar' + is_nullable: 0 + size: 25 + +=head2 translation + + data_type: 'text' + is_nullable: 1 + +=cut + +__PACKAGE__->add_columns( + "localization_id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "entity", + { data_type => "varchar", is_nullable => 0, size => 16 }, + "code", + { data_type => "varchar", is_nullable => 0, size => 64 }, + "lang", + { data_type => "varchar", is_nullable => 0, size => 25 }, + "translation", + { data_type => "text", is_nullable => 1 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("localization_id"); + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=cut + +__PACKAGE__->add_unique_constraint("entity_code_lang", ["entity", "code", "lang"]); + + +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-27 12:51:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bYEuhKEE13txmjNiRHk8tA + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 2.39.5