Bugzilla – Attachment 72820 Details for
Bug 19520
Show more information about rotating collections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19520: Update databse schema files
Bug-19520-Update-databse-schema-files.patch (text/plain), 2.40 KB, created by
Josef Moravec
on 2018-03-13 22:18:07 UTC
(
hide
)
Description:
Bug 19520: Update databse schema files
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-03-13 22:18:07 UTC
Size:
2.40 KB
patch
obsolete
>From 30c3712e2f11fc826a2e2dc9d2f2e438c3cfd22e Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Sun, 12 Nov 2017 10:50:04 +0000 >Subject: [PATCH] Bug 19520: Update databse schema files > >--- > Koha/Schema/Result/Collection.pm | 66 ++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 64 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/Collection.pm b/Koha/Schema/Result/Collection.pm >index 389af47..7de5a7f 100644 >--- a/Koha/Schema/Result/Collection.pm >+++ b/Koha/Schema/Result/Collection.pm >@@ -52,6 +52,27 @@ __PACKAGE__->table("collections"); > is_nullable: 1 > size: 10 > >+=head2 createdBy >+ >+ accessor: 'created_by' >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ >+=head2 createdOn >+ >+ accessor: 'created_on' >+ data_type: 'datetime' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ >+=head2 lastTransferredOn >+ >+ accessor: 'last_transferred_on' >+ data_type: 'datetime' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ > =cut > > __PACKAGE__->add_columns( >@@ -80,6 +101,27 @@ __PACKAGE__->add_columns( > is_nullable => 1, > size => 10, > }, >+ "createdBy", >+ { >+ accessor => "created_by", >+ data_type => "integer", >+ is_foreign_key => 1, >+ is_nullable => 1, >+ }, >+ "createdOn", >+ { >+ accessor => "created_on", >+ data_type => "datetime", >+ datetime_undef_if_invalid => 1, >+ is_nullable => 1, >+ }, >+ "lastTransferredOn", >+ { >+ accessor => "last_transferred_on", >+ data_type => "datetime", >+ datetime_undef_if_invalid => 1, >+ is_nullable => 1, >+ }, > ); > > =head1 PRIMARY KEY >@@ -131,9 +173,29 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 created_by >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "created_by", >+ "Koha::Schema::Result::Borrower", >+ { borrowernumber => "createdBy" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "SET NULL", >+ on_update => "CASCADE", >+ }, >+); >+ > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-03-05 11:15:27 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rpcRZuYeV6k8GvddpikSSQ >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-11-12 10:32:36 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WvtZW+gjkxy8J1EL2oF0oA > > > # You can replace this text with custom content, and it will be preserved on regeneration >-- >2.1.4
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 19520
:
72819
|
72820
|
72821
|
72822
|
73260
|
73261
|
73262
|
73263
|
73394
|
73395
|
73396
|
73397