Bugzilla – Attachment 178602 Details for
Bug 38924
Introduce an organization level loan 'Quota' system for Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38924: DBIC Dump
Bug-38924-DBIC-Dump.patch (text/plain), 1.84 KB, created by
Martin Renvoize (ashimema)
on 2025-02-24 16:30:04 UTC
(
hide
)
Description:
Bug 38924: DBIC Dump
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-24 16:30:04 UTC
Size:
1.84 KB
patch
obsolete
>From 71c3b63682765a4407ac198ad2392709bd19388c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 7 Feb 2025 12:11:35 +0000 >Subject: [PATCH] Bug 38924: DBIC Dump > >--- > Koha/Schema/Result/PatronQuotaUsage.pm | 34 ++++++++++++++++++++++++-- > 1 file changed, 32 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/PatronQuotaUsage.pm b/Koha/Schema/Result/PatronQuotaUsage.pm >index 43508504ac1..02f6f0508b1 100644 >--- a/Koha/Schema/Result/PatronQuotaUsage.pm >+++ b/Koha/Schema/Result/PatronQuotaUsage.pm >@@ -54,6 +54,23 @@ linking to issues.issue_id or old_issues.issue_id > > foreign key linking to borrowers.borrowernumber > >+=head2 type >+ >+ data_type: 'enum' >+ extra: {list => ["ISSUE","RENEW"]} >+ is_nullable: 0 >+ >+The type of usage this is >+ >+=head2 creation_date >+ >+ data_type: 'timestamp' >+ datetime_undef_if_invalid: 1 >+ default_value: current_timestamp >+ is_nullable: 0 >+ >+the timestamp for when a usage was recorded >+ > =cut > > __PACKAGE__->add_columns( >@@ -65,6 +82,19 @@ __PACKAGE__->add_columns( > { data_type => "integer", is_nullable => 1 }, > "patron_id", > { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, >+ "type", >+ { >+ data_type => "enum", >+ extra => { list => ["ISSUE", "RENEW"] }, >+ is_nullable => 0, >+ }, >+ "creation_date", >+ { >+ data_type => "timestamp", >+ datetime_undef_if_invalid => 1, >+ default_value => \"current_timestamp", >+ is_nullable => 0, >+ }, > ); > > =head1 PRIMARY KEY >@@ -112,8 +142,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-07 14:14:27 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/UbHmNOqiKX4ZjaDZOKi0Q >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-07 11:22:06 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WSsSTNOfNnTSyP3AGS9NXA > > > sub koha_object_class { >-- >2.48.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 38924
:
178582
|
178583
|
178584
|
178585
|
178586
|
178587
|
178588
|
178589
|
178590
|
178591
|
178592
|
178593
|
178594
|
178595
|
178596
|
178597
|
178598
|
178599
|
178600
|
178601
| 178602 |
178603
|
178604
|
178605
|
178606
|
178607
|
178608