From 689446fda0fa665202c9e32c50705ba828337c94 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 16 Nov 2022 09:24:09 -0300 Subject: [PATCH] Bug 32154: DBIC schema Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/ErmUserRole.pm | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/ErmUserRole.pm b/Koha/Schema/Result/ErmUserRole.pm index 0c217b0f97..1c678edf41 100644 --- a/Koha/Schema/Result/ErmUserRole.pm +++ b/Koha/Schema/Result/ErmUserRole.pm @@ -23,6 +23,14 @@ __PACKAGE__->table("erm_user_roles"); =head1 ACCESSORS +=head2 user_role_id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +primary key + =head2 agreement_id data_type: 'integer' @@ -58,6 +66,8 @@ role of the user =cut __PACKAGE__->add_columns( + "user_role_id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, "agreement_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "license_id", @@ -68,6 +78,18 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 0, size => 80 }, ); +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("user_role_id"); + =head1 RELATIONS =head2 agreement @@ -126,8 +148,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-01 07:44:13 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RkK5cQWFEmcrDioAfjOVWQ +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-16 12:23:11 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HbkogqUuTLQCaUY1VrT6Hw sub koha_object_class { 'Koha::ERM::UserRole'; -- 2.39.5