Bug 24606: DBIC schema
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
af92782c97
commit
fe85f9d257
2 changed files with 24 additions and 9 deletions
|
@ -1462,6 +1462,21 @@ __PACKAGE__->has_many(
|
||||||
{ cascade_copy => 0, cascade_delete => 0 },
|
{ cascade_copy => 0, cascade_delete => 0 },
|
||||||
);
|
);
|
||||||
|
|
||||||
|
=head2 item_editor_templates
|
||||||
|
|
||||||
|
Type: has_many
|
||||||
|
|
||||||
|
Related object: L<Koha::Schema::Result::ItemEditorTemplate>
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
__PACKAGE__->has_many(
|
||||||
|
"item_editor_templates",
|
||||||
|
"Koha::Schema::Result::ItemEditorTemplate",
|
||||||
|
{ "foreign.patron_id" => "self.borrowernumber" },
|
||||||
|
{ cascade_copy => 0, cascade_delete => 0 },
|
||||||
|
);
|
||||||
|
|
||||||
=head2 items_last_borrowers
|
=head2 items_last_borrowers
|
||||||
|
|
||||||
Type: has_many
|
Type: has_many
|
||||||
|
@ -2043,8 +2058,8 @@ Composing rels: L</user_permissions> -> permission
|
||||||
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
|
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
|
||||||
|
|
||||||
|
|
||||||
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-01 07:44:13
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-10 17:43:30
|
||||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aezs6MyXhwra3gEHhXjAmg
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5hh2lGCcKclyTnY7KNPkvg
|
||||||
|
|
||||||
__PACKAGE__->has_many(
|
__PACKAGE__->has_many(
|
||||||
"extended_attributes",
|
"extended_attributes",
|
||||||
|
|
|
@ -31,7 +31,7 @@ __PACKAGE__->table("item_editor_templates");
|
||||||
|
|
||||||
id for the template
|
id for the template
|
||||||
|
|
||||||
=head2 borrowernumber
|
=head2 patron_id
|
||||||
|
|
||||||
data_type: 'integer'
|
data_type: 'integer'
|
||||||
is_foreign_key: 1
|
is_foreign_key: 1
|
||||||
|
@ -66,7 +66,7 @@ json encoded template data
|
||||||
__PACKAGE__->add_columns(
|
__PACKAGE__->add_columns(
|
||||||
"id",
|
"id",
|
||||||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
||||||
"borrowernumber",
|
"patron_id",
|
||||||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
|
||||||
"name",
|
"name",
|
||||||
{ data_type => "mediumtext", is_nullable => 0 },
|
{ data_type => "mediumtext", is_nullable => 0 },
|
||||||
|
@ -90,7 +90,7 @@ __PACKAGE__->set_primary_key("id");
|
||||||
|
|
||||||
=head1 RELATIONS
|
=head1 RELATIONS
|
||||||
|
|
||||||
=head2 borrowernumber
|
=head2 patron
|
||||||
|
|
||||||
Type: belongs_to
|
Type: belongs_to
|
||||||
|
|
||||||
|
@ -99,9 +99,9 @@ Related object: L<Koha::Schema::Result::Borrower>
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
__PACKAGE__->belongs_to(
|
__PACKAGE__->belongs_to(
|
||||||
"borrowernumber",
|
"patron",
|
||||||
"Koha::Schema::Result::Borrower",
|
"Koha::Schema::Result::Borrower",
|
||||||
{ borrowernumber => "borrowernumber" },
|
{ borrowernumber => "patron_id" },
|
||||||
{
|
{
|
||||||
is_deferrable => 1,
|
is_deferrable => 1,
|
||||||
join_type => "LEFT",
|
join_type => "LEFT",
|
||||||
|
@ -111,8 +111,8 @@ __PACKAGE__->belongs_to(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-28 16:49:35
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-10 17:43:30
|
||||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7JIe4z78F9oMOAnAZdqmtA
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9W+tUIeeQnoitoQZ6d0wQg
|
||||||
|
|
||||||
__PACKAGE__->add_columns(
|
__PACKAGE__->add_columns(
|
||||||
'+is_shared' => { is_boolean => 1 },
|
'+is_shared' => { is_boolean => 1 },
|
||||||
|
|
Loading…
Reference in a new issue