Bugzilla – Attachment 40846 Details for
Bug 3206
OAI-PMH repository deleted record support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 3206: (RM followup) DBIx updates
Bug-3206-RM-followup-DBIx-updates.patch (text/plain), 3.98 KB, created by
Tomás Cohen Arazi (tcohen)
on 2015-07-08 18:07:49 UTC
(
hide
)
Description:
Bug 3206: (RM followup) DBIx updates
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2015-07-08 18:07:49 UTC
Size:
3.98 KB
patch
obsolete
>From a0b8efac665ac5c41b0ce68585ab0d00d00fd878 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 8 Jul 2015 15:07:24 -0300 >Subject: [PATCH] Bug 3206: (RM followup) DBIx updates > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Schema/Result/Biblio.pm | 29 ++--------------------------- > Koha/Schema/Result/OaiSet.pm | 14 ++------------ > Koha/Schema/Result/OaiSetsBiblio.pm | 22 +++------------------- > 3 files changed, 7 insertions(+), 58 deletions(-) > >diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm >index 9fd413b..54f6727 100644 >--- a/Koha/Schema/Result/Biblio.pm >+++ b/Koha/Schema/Result/Biblio.pm >@@ -197,21 +197,6 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >-=head2 oai_sets_biblios >- >-Type: has_many >- >-Related object: L<Koha::Schema::Result::OaiSetsBiblio> >- >-=cut >- >-__PACKAGE__->has_many( >- "oai_sets_biblios", >- "Koha::Schema::Result::OaiSetsBiblio", >- { "foreign.biblionumber" => "self.biblionumber" }, >- { cascade_copy => 0, cascade_delete => 0 }, >-); >- > =head2 old_reserves > > Type: has_many >@@ -317,18 +302,8 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >-=head2 sets >- >-Type: many_to_many >- >-Composing rels: L</oai_sets_biblios> -> set >- >-=cut >- >-__PACKAGE__->many_to_many("sets", "oai_sets_biblios", "set"); >- > >-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0//8OGf7OteNnwT03g4QsA >+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vh7DAGajJCEzHE7YmAG3jg > > 1; >diff --git a/Koha/Schema/Result/OaiSet.pm b/Koha/Schema/Result/OaiSet.pm >index 32897bf..4081a97 100644 >--- a/Koha/Schema/Result/OaiSet.pm >+++ b/Koha/Schema/Result/OaiSet.pm >@@ -125,19 +125,9 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >-=head2 biblionumbers > >-Type: many_to_many >- >-Composing rels: L</oai_sets_biblios> -> biblionumber >- >-=cut >- >-__PACKAGE__->many_to_many("biblionumbers", "oai_sets_biblios", "biblionumber"); >- >- >-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3M30E7wFbGbesAfQYyalTw >+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ju63fVMgLPbeFxeZJsQHRQ > > > # You can replace this text with custom content, and it will be preserved on regeneration >diff --git a/Koha/Schema/Result/OaiSetsBiblio.pm b/Koha/Schema/Result/OaiSetsBiblio.pm >index 60aaead..70409ef 100644 >--- a/Koha/Schema/Result/OaiSetsBiblio.pm >+++ b/Koha/Schema/Result/OaiSetsBiblio.pm >@@ -26,7 +26,6 @@ __PACKAGE__->table("oai_sets_biblios"); > =head2 biblionumber > > data_type: 'integer' >- is_foreign_key: 1 > is_nullable: 0 > > =head2 set_id >@@ -39,7 +38,7 @@ __PACKAGE__->table("oai_sets_biblios"); > > __PACKAGE__->add_columns( > "biblionumber", >- { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ { data_type => "integer", is_nullable => 0 }, > "set_id", > { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, > ); >@@ -60,21 +59,6 @@ __PACKAGE__->set_primary_key("biblionumber", "set_id"); > > =head1 RELATIONS > >-=head2 biblionumber >- >-Type: belongs_to >- >-Related object: L<Koha::Schema::Result::Biblio> >- >-=cut >- >-__PACKAGE__->belongs_to( >- "biblionumber", >- "Koha::Schema::Result::Biblio", >- { biblionumber => "biblionumber" }, >- { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, >-); >- > =head2 set > > Type: belongs_to >@@ -91,8 +75,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Zl0mhAt8isigZay80Ie6jA >+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oGVUyyyune8FVOj504xizw > > > # You can replace this text with custom content, and it will be preserved on regeneration >-- >2.4.5
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 3206
:
39771
|
39794
|
39795
|
39797
|
39993
|
40427
|
40459
|
40460
|
40478
|
40479
| 40846 |
40849