Bugzilla – Attachment 161439 Details for
Bug 32607
Add record sources CRUD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32607: DBIC schema [DO NOT PUSH]
Bug-32607-DBIC-schema-DO-NOT-PUSH.patch (text/plain), 3.58 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-01-25 15:44:50 UTC
(
hide
)
Description:
Bug 32607: DBIC schema [DO NOT PUSH]
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-01-25 15:44:50 UTC
Size:
3.58 KB
patch
obsolete
>From 0257380c08c1a16992ed1319fa1777a8719bd93f 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 32607: DBIC schema [DO NOT PUSH] > >--- > 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.43.0
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 32607
:
146410
|
146411
|
146412
|
149777
|
149827
|
149828
|
149829
|
154006
|
154007
|
154008
|
154009
|
154010
|
154438
|
155682
|
155683
|
155684
|
155685
|
155686
|
155958
|
157756
|
157757
|
157758
|
157759
|
157760
|
157761
|
157762
|
161362
|
161363
|
161364
|
161365
|
161366
|
161367
|
161435
|
161436
|
161437
|
161438
| 161439 |
161440
|
161441
|
161474