Bugzilla – Attachment 185988 Details for
Bug 39190
Rework new (S)FTP classes to be polymorphic classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39190: Adjust schema to new structure
Bug-39190-Adjust-schema-to-new-structure.patch (text/plain), 2.98 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-08-29 21:24:08 UTC
(
hide
)
Description:
Bug 39190: Adjust schema to new structure
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-08-29 21:24:08 UTC
Size:
2.98 KB
patch
obsolete
>From e64d05f6a7e905bed5c26eece7cb2331d1bd5354 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 29 Aug 2025 17:30:12 -0300 >Subject: [PATCH] Bug 39190: Adjust schema to new structure > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/File/Transport.pm | 2 +- > Koha/File/Transports.pm | 2 +- > .../Result/{SftpServer.pm => FileTransport.pm} | 17 ++++++++--------- > 3 files changed, 10 insertions(+), 11 deletions(-) > rename Koha/Schema/Result/{SftpServer.pm => FileTransport.pm} (88%) > >diff --git a/Koha/File/Transport.pm b/Koha/File/Transport.pm >index cdf17eac4ba..dc4d1cf75ea 100644 >--- a/Koha/File/Transport.pm >+++ b/Koha/File/Transport.pm >@@ -304,7 +304,7 @@ Return type of Object relating to Schema Result > =cut > > sub _type { >- return 'SftpServer'; >+ return 'FileTransport'; > } > > 1; >diff --git a/Koha/File/Transports.pm b/Koha/File/Transports.pm >index 932a7248696..c27728fcbb9 100644 >--- a/Koha/File/Transports.pm >+++ b/Koha/File/Transports.pm >@@ -40,7 +40,7 @@ Return type of object, relating to Schema ResultSet > =cut > > sub _type { >- return 'SftpServer'; >+ return 'FileTransport'; > } > > =head3 _polymorphic_field >diff --git a/Koha/Schema/Result/SftpServer.pm b/Koha/Schema/Result/FileTransport.pm >similarity index 88% >rename from Koha/Schema/Result/SftpServer.pm >rename to Koha/Schema/Result/FileTransport.pm >index 75d50be03cd..8705d8ff326 100644 >--- a/Koha/Schema/Result/SftpServer.pm >+++ b/Koha/Schema/Result/FileTransport.pm >@@ -1,12 +1,12 @@ > use utf8; >-package Koha::Schema::Result::SftpServer; >+package Koha::Schema::Result::FileTransport; > > # Created by DBIx::Class::Schema::Loader > # DO NOT MODIFY THE FIRST PART OF THIS FILE > > =head1 NAME > >-Koha::Schema::Result::SftpServer >+Koha::Schema::Result::FileTransport > > =cut > >@@ -15,11 +15,11 @@ use warnings; > > use base 'DBIx::Class::Core'; > >-=head1 TABLE: C<sftp_servers> >+=head1 TABLE: C<file_transports> > > =cut > >-__PACKAGE__->table("sftp_servers"); >+__PACKAGE__->table("file_transports"); > > =head1 ACCESSORS > >@@ -96,9 +96,8 @@ __PACKAGE__->table("sftp_servers"); > > =head2 status > >- data_type: 'varchar' >+ data_type: 'longtext' > is_nullable: 1 >- size: 32 > > =head2 debug > >@@ -149,7 +148,7 @@ __PACKAGE__->add_columns( > "upload_directory", > { data_type => "mediumtext", is_nullable => 1 }, > "status", >- { data_type => "varchar", is_nullable => 1, size => 32 }, >+ { data_type => "longtext", is_nullable => 1 }, > "debug", > { data_type => "tinyint", default_value => 0, is_nullable => 0 }, > ); >@@ -167,8 +166,8 @@ __PACKAGE__->add_columns( > __PACKAGE__->set_primary_key("id"); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-29 14:29:49 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Mr3SRG6aRllMJvaltvwgOw >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-29 20:23:47 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eeoKreXE9wfz12s4ENo5Tg > > __PACKAGE__->add_columns( > '+passive' => { is_boolean => 1 }, >-- >2.51.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 39190
:
178555
|
178556
|
178557
|
178558
|
178559
|
178560
|
178561
|
178562
|
178563
|
178564
|
178565
|
178566
|
178567
|
178568
|
178569
|
178570
|
178571
|
179252
|
179253
|
179254
|
179255
|
179256
|
179257
|
179258
|
179259
|
179260
|
179261
|
179262
|
179263
|
179264
|
179265
|
179266
|
179267
|
179268
|
179396
|
179397
|
179398
|
179399
|
179400
|
179401
|
179402
|
179403
|
179404
|
179405
|
179406
|
179407
|
179408
|
179409
|
179410
|
179411
|
179412
|
179413
|
179589
|
179590
|
179591
|
179592
|
179593
|
179594
|
179595
|
179596
|
179597
|
179598
|
179599
|
179600
|
179601
|
179602
|
179603
|
179604
|
179605
|
179606
|
179646
|
179647
|
179648
|
179649
|
179650
|
179651
|
179652
|
179653
|
179654
|
179655
|
179656
|
179657
|
179658
|
179659
|
179660
|
179661
|
179662
|
179663
|
179992
|
179993
|
179994
|
179995
|
179996
|
179997
|
179998
|
179999
|
180000
|
180001
|
180002
|
180003
|
180004
|
180005
|
180006
|
180010
|
180011
|
180012
|
180013
|
180014
|
180015
|
180016
|
180017
|
180018
|
180019
|
180020
|
180021
|
180022
|
180023
|
180024
|
180025
|
185014
|
185015
|
185016
|
185017
|
185018
|
185019
|
185020
|
185021
|
185022
|
185023
|
185024
|
185025
|
185026
|
185027
|
185028
|
185029
|
185972
|
185973
|
185974
|
185975
|
185976
|
185977
|
185978
|
185979
|
185980
|
185981
|
185982
|
185983
|
185984
|
185985
|
185986
|
185987
| 185988 |
185989
|
185990
|
185994
|
185995
|
185996
|
185997
|
185998