From b14064c1987c1a1125549ccffecacc9e8256a6b4 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Wed, 19 Sep 2018 12:56:04 +0000 Subject: [PATCH] Bug 16881: update schema file --- Koha/Schema/Result/UsersColumnsSetting.pm | 139 ++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 Koha/Schema/Result/UsersColumnsSetting.pm diff --git a/Koha/Schema/Result/UsersColumnsSetting.pm b/Koha/Schema/Result/UsersColumnsSetting.pm new file mode 100644 index 0000000..2acb8fb --- /dev/null +++ b/Koha/Schema/Result/UsersColumnsSetting.pm @@ -0,0 +1,139 @@ +use utf8; +package Koha::Schema::Result::UsersColumnsSetting; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::UsersColumnsSetting + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("users_columns_settings"); + +=head1 ACCESSORS + +=head2 borrowernumber + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 0 + +=head2 module + + data_type: 'varchar' + is_nullable: 0 + size: 50 + +=head2 page + + data_type: 'varchar' + is_nullable: 0 + size: 50 + +=head2 tablename + + data_type: 'varchar' + is_nullable: 0 + size: 50 + +=head2 additional_param + + data_type: 'varchar' + is_nullable: 0 + size: 255 + +=head2 columnname + + data_type: 'varchar' + is_nullable: 0 + size: 50 + +=head2 is_hidden + + data_type: 'integer' + default_value: 0 + is_nullable: 0 + +=cut + +__PACKAGE__->add_columns( + "borrowernumber", + { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, + "module", + { data_type => "varchar", is_nullable => 0, size => 50 }, + "page", + { data_type => "varchar", is_nullable => 0, size => 50 }, + "tablename", + { data_type => "varchar", is_nullable => 0, size => 50 }, + "additional_param", + { data_type => "varchar", is_nullable => 0, size => 255 }, + "columnname", + { data_type => "varchar", is_nullable => 0, size => 50 }, + "is_hidden", + { data_type => "integer", default_value => 0, is_nullable => 0 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=item * L + +=item * L + +=item * L + +=item * L + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key( + "borrowernumber", + "module", + "page", + "tablename", + "columnname", + "additional_param", +); + +=head1 RELATIONS + +=head2 borrowernumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "borrowernumber", + "Koha::Schema::Result::Borrower", + { borrowernumber => "borrowernumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-09-19 06:48:44 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bZsyJuDZrtJmcGa/vv4Ngg + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; -- 2.7.4