Bugzilla – Attachment 153131 Details for
Bug 33105
Add vendor issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33105: [DBIx] Schema changes
Bug-33105-DBIx-Schema-changes.patch (text/plain), 4.08 KB, created by
Marcel de Rooy
on 2023-07-07 09:15:32 UTC
(
hide
)
Description:
Bug 33105: [DBIx] Schema changes
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-07-07 09:15:32 UTC
Size:
4.08 KB
patch
obsolete
>From 1c3ca396afb6518170e6e678a8a0cd58901e2115 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 30 Jun 2023 09:55:14 +0000 >Subject: [PATCH] Bug 33105: [DBIx] Schema changes >Content-Type: text/plain; charset=utf-8 > >Former patches did not apply anymore. Refreshed them. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Schema/Result/Aqbookseller.pm | 19 +++- > Koha/Schema/Result/AqbooksellerIssue.pm | 125 ++++++++++++++++++++++++ > 2 files changed, 142 insertions(+), 2 deletions(-) > create mode 100644 Koha/Schema/Result/AqbooksellerIssue.pm > >diff --git a/Koha/Schema/Result/Aqbookseller.pm b/Koha/Schema/Result/Aqbookseller.pm >index 91ed3959c2..f9ce48cae4 100644 >--- a/Koha/Schema/Result/Aqbookseller.pm >+++ b/Koha/Schema/Result/Aqbookseller.pm >@@ -319,6 +319,21 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 aqbookseller_issues >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::AqbooksellerIssue> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqbookseller_issues", >+ "Koha::Schema::Result::AqbooksellerIssue", >+ { "foreign.vendor_id" => "self.id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > =head2 aqcontacts > > Type: has_many >@@ -495,8 +510,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-05 12:54:39 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+Z62eWfOqHCcN0Uu2oE/7w >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-30 09:54:35 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xjeOqpcdN3Kb1wmLGDjzLg > > __PACKAGE__->add_columns( > '+active' => { is_boolean => 1 }, >diff --git a/Koha/Schema/Result/AqbooksellerIssue.pm b/Koha/Schema/Result/AqbooksellerIssue.pm >new file mode 100644 >index 0000000000..7ed7e43e1e >--- /dev/null >+++ b/Koha/Schema/Result/AqbooksellerIssue.pm >@@ -0,0 +1,125 @@ >+use utf8; >+package Koha::Schema::Result::AqbooksellerIssue; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+=head1 NAME >+ >+Koha::Schema::Result::AqbooksellerIssue >+ >+=cut >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+=head1 TABLE: C<aqbookseller_issues> >+ >+=cut >+ >+__PACKAGE__->table("aqbookseller_issues"); >+ >+=head1 ACCESSORS >+ >+=head2 issue_id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+primary key and unique identifier assigned by Koha >+ >+=head2 vendor_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 0 >+ >+link to the vendor >+ >+=head2 type >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+type of the issue, authorised value VENDOR_ISSUE_TYPE >+ >+=head2 started_on >+ >+ data_type: 'date' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ >+start of the issue >+ >+=head2 ended_on >+ >+ data_type: 'date' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ >+end of the issue >+ >+=head2 notes >+ >+ data_type: 'longtext' >+ is_nullable: 1 >+ >+notes >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "issue_id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "vendor_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "type", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "started_on", >+ { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, >+ "ended_on", >+ { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, >+ "notes", >+ { data_type => "longtext", is_nullable => 1 }, >+); >+ >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</issue_id> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("issue_id"); >+ >+=head1 RELATIONS >+ >+=head2 vendor >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Aqbookseller> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "vendor", >+ "Koha::Schema::Result::Aqbookseller", >+ { id => "vendor_id" }, >+ { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-30 09:54:35 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ljn21/DFV5QvS5z3kDrBwQ >+ >+ >+# You can replace this text with custom code or comments, and it will be preserved on regeneration >+1; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33105
:
149509
|
149510
|
149511
|
149512
|
149513
|
149514
|
149515
|
149530
|
149531
|
149532
|
149556
|
149557
|
149558
|
149559
|
149560
|
149561
|
149562
|
152894
|
152895
|
152896
|
152897
|
152898
|
152899
|
152900
|
153117
|
153118
|
153119
|
153122
|
153123
|
153125
|
153126
|
153127
|
153128
|
153129
|
153130
| 153131 |
153132
|
153133
|
153134
|
153135
|
153136
|
153137
|
153730
|
153731