Bugzilla – Attachment 185695 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
Victor Grousset/tuxayo
on 2025-08-21 22:54:00 UTC
(
hide
)
Description:
Bug 38924: DBIC Dump
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2025-08-21 22:54:00 UTC
Size:
1.84 KB
patch
obsolete
>From 59546aaedae2f0824d00e1e6aab2a98c5df64030 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 adfc213a65..300458bfef 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-08-21 15:48:49 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KPS5VIQp3jVEgGNG8k4tZA >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-21 16:54:49 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x+OvLQNInT0DkfPmiZwZzg > > > sub koha_object_class { >-- >2.50.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
|
185631
|
185632
|
185633
|
185634
|
185635
|
185636
|
185637
|
185638
|
185639
|
185640
|
185641
|
185642
|
185643
|
185644
|
185645
|
185646
|
185647
|
185648
|
185649
|
185650
|
185651
|
185652
|
185653
|
185654
|
185655
|
185656
|
185657
|
185675
|
185676
|
185677
|
185678
|
185679
|
185680
|
185681
|
185682
|
185683
|
185684
|
185685
|
185686
|
185687
|
185688
|
185689
|
185690
|
185691
|
185692
|
185693
|
185694
| 185695 |
185696
|
185697
|
185698
|
185699
|
185700
|
185701
|
185702