Bugzilla – Attachment 163395 Details for
Bug 35919
Add record sources CRUD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35919: DBIC schema [DO NOT PUSH]
Bug-35919-DBIC-schema-DO-NOT-PUSH.patch (text/plain), 3.77 KB, created by
Jonathan Druart
on 2024-03-19 11:28:30 UTC
(
hide
)
Description:
Bug 35919: DBIC schema [DO NOT PUSH]
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-03-19 11:28:30 UTC
Size:
3.77 KB
patch
obsolete
>From 302329f56485e12a9d30165825996639dc8996fc Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 24 Jan 2024 16:18:32 -0300 >Subject: [PATCH] Bug 35919: DBIC schema [DO NOT PUSH] > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Schema/Result/BiblioMetadata.pm | 34 +++++++++++++++++++-- > Koha/Schema/Result/DeletedbiblioMetadata.pm | 34 +++++++++++++++++++-- > 2 files changed, 64 insertions(+), 4 deletions(-) > >diff --git a/Koha/Schema/Result/BiblioMetadata.pm b/Koha/Schema/Result/BiblioMetadata.pm >index aa1a7b25ee2..607ff676670 100644 >--- a/Koha/Schema/Result/BiblioMetadata.pm >+++ b/Koha/Schema/Result/BiblioMetadata.pm >@@ -59,6 +59,14 @@ __PACKAGE__->table("biblio_metadata"); > default_value: current_timestamp > is_nullable: 0 > >+=head2 record_source_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+The record source for the metadata >+ > =cut > > __PACKAGE__->add_columns( >@@ -79,6 +87,8 @@ __PACKAGE__->add_columns( > default_value => \"current_timestamp", > is_nullable => 0, > }, >+ "record_source_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -131,9 +141,29 @@ __PACKAGE__->belongs_to( > { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, > ); > >+=head2 record_source >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::RecordSource> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "record_source", >+ "Koha::Schema::Result::RecordSource", >+ { record_source_id => "record_source_id" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "CASCADE", >+ on_update => "CASCADE", >+ }, >+); >+ > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-30 11:34:16 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FJk/YOw8Y/QRmmPPL3G5qQ >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-01-24 17:16:20 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L0Yv0wrahJGyOiiBRBjonQ > > sub koha_object_class { > 'Koha::Biblio::Metadata'; >diff --git a/Koha/Schema/Result/DeletedbiblioMetadata.pm b/Koha/Schema/Result/DeletedbiblioMetadata.pm >index 17406b9ca48..930184ab2c3 100644 >--- a/Koha/Schema/Result/DeletedbiblioMetadata.pm >+++ b/Koha/Schema/Result/DeletedbiblioMetadata.pm >@@ -59,6 +59,14 @@ __PACKAGE__->table("deletedbiblio_metadata"); > default_value: current_timestamp > is_nullable: 0 > >+=head2 record_source_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+The record source for the metadata >+ > =cut > > __PACKAGE__->add_columns( >@@ -79,6 +87,8 @@ __PACKAGE__->add_columns( > default_value => \"current_timestamp", > is_nullable => 0, > }, >+ "record_source_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -131,9 +141,29 @@ __PACKAGE__->belongs_to( > { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, > ); > >+=head2 record_source >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::RecordSource> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "record_source", >+ "Koha::Schema::Result::RecordSource", >+ { record_source_id => "record_source_id" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "CASCADE", >+ on_update => "CASCADE", >+ }, >+); >+ > >-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-30 11:34:16 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JCOh+FSSTgPlC8lMJOdOOA >+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-01-24 18:05:50 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jEM0aYYjTiiNiolqlshXJA > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >-- >2.34.1
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 35919
:
161531
|
161532
|
161533
|
161534
|
161535
|
161537
|
161538
|
161577
|
161578
|
161579
|
161580
|
161581
|
161582
|
161583
|
162489
|
162594
|
162595
|
162596
|
162599
|
163348
|
163349
|
163350
|
163351
|
163352
|
163353
|
163354
|
163355
|
163360
|
163369
|
163389
|
163390
|
163391
|
163392
|
163393
|
163394
|
163395
|
163396
|
163397
|
163398
|
163399
|
163400
|
164708
|
164709
|
164710
|
164711
|
164712
|
164713
|
164714
|
164715
|
164716
|
164717
|
165274