Bugzilla – Attachment 179250 Details for
Bug 35761
Add an administration editor for FTP and SFTP servers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35761: DBIC Schema
Bug-35761-DBIC-Schema.patch (text/plain), 4.07 KB, created by
Martin Renvoize (ashimema)
on 2025-03-13 14:35:21 UTC
(
hide
)
Description:
Bug 35761: DBIC Schema
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-03-13 14:35:21 UTC
Size:
4.07 KB
patch
obsolete
>From 1a30551c52d0be88c899bf54b8584be7c95f6315 Mon Sep 17 00:00:00 2001 >From: Jake Deery <jake.deery@ptfs-europe.com> >Date: Fri, 14 Feb 2025 15:54:30 +0000 >Subject: [PATCH] Bug 35761: DBIC Schema > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Schema/Result/SftpServer.pm | 186 +++++++++++++++++++++++++++++++ > 1 file changed, 186 insertions(+) > create mode 100644 Koha/Schema/Result/SftpServer.pm > >diff --git a/Koha/Schema/Result/SftpServer.pm b/Koha/Schema/Result/SftpServer.pm >new file mode 100644 >index 00000000000..02d09609ac3 >--- /dev/null >+++ b/Koha/Schema/Result/SftpServer.pm >@@ -0,0 +1,186 @@ >+use utf8; >+ >+package Koha::Schema::Result::SftpServer; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+=head1 NAME >+ >+Koha::Schema::Result::SftpServer >+ >+=cut >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+=head1 TABLE: C<sftp_servers> >+ >+=cut >+ >+__PACKAGE__->table("sftp_servers"); >+ >+=head1 ACCESSORS >+ >+=head2 id >+ >+ data_type: 'integer' >+ is_auto_increment: 1 >+ is_nullable: 0 >+ >+=head2 name >+ >+ data_type: 'varchar' >+ is_nullable: 0 >+ size: 80 >+ >+=head2 host >+ >+ data_type: 'varchar' >+ default_value: 'localhost' >+ is_nullable: 0 >+ size: 80 >+ >+=head2 port >+ >+ data_type: 'integer' >+ default_value: 22 >+ is_nullable: 0 >+ >+=head2 transport >+ >+ data_type: 'enum' >+ default_value: 'sftp' >+ extra: {list => ["ftp","sftp"]} >+ is_nullable: 0 >+ >+=head2 passiv >+ >+ data_type: 'tinyint' >+ default_value: 1 >+ is_nullable: 0 >+ >+=head2 user_name >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 80 >+ >+=head2 password >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 key_file >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 auth_mode >+ >+ data_type: 'enum' >+ default_value: 'password' >+ extra: {list => ["password","key_file","noauth"]} >+ is_nullable: 0 >+ >+=head2 download_directory >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 upload_directory >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 status >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 32 >+ >+=head2 debug >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "id", >+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, >+ "name", >+ { data_type => "varchar", is_nullable => 0, size => 80 }, >+ "host", >+ { >+ data_type => "varchar", >+ default_value => "localhost", >+ is_nullable => 0, >+ size => 80, >+ }, >+ "port", >+ { data_type => "integer", default_value => 22, is_nullable => 0 }, >+ "transport", >+ { >+ data_type => "enum", >+ default_value => "sftp", >+ extra => { list => [ "ftp", "sftp" ] }, >+ is_nullable => 0, >+ }, >+ "passiv", >+ { data_type => "tinyint", default_value => 1, is_nullable => 0 }, >+ "user_name", >+ { data_type => "varchar", is_nullable => 1, size => 80 }, >+ "password", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "key_file", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "auth_mode", >+ { >+ data_type => "enum", >+ default_value => "password", >+ extra => { list => [ "password", "key_file", "noauth" ] }, >+ is_nullable => 0, >+ }, >+ "download_directory", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "upload_directory", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "status", >+ { data_type => "varchar", is_nullable => 1, size => 32 }, >+ "debug", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+ >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</id> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("id"); >+ >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-17 10:30:17 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dnz0prvPxRoopZCdRaUtnA >+ >+__PACKAGE__->add_columns( >+ '+passive' => { is_boolean => 1 }, >+ '+debug' => { is_boolean => 1 }, >+); >+ >+sub koha_objects_class { >+ 'Koha::SFTP::Servers'; >+} >+ >+sub koha_object_class { >+ 'Koha::SFTP::Server'; >+} >+ >+1; >-- >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 35761
:
174933
|
174937
|
175030
|
175052
|
175067
|
175166
|
175608
|
175916
|
176429
|
176430
|
177577
|
177578
|
177741
|
177742
|
178552
|
178553
|
178554
|
179249
| 179250 |
179251