View | Details | Raw Unified | Return to bug 35761
Collapse All | Expand All

(-)a/Koha/Schema/Result/SftpServer.pm (-1 / +198 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::SftpServer;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::SftpServer
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<sftp_servers>
19
20
=cut
21
22
__PACKAGE__->table("sftp_servers");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 name
33
34
  data_type: 'varchar'
35
  is_nullable: 0
36
  size: 80
37
38
=head2 host
39
40
  data_type: 'varchar'
41
  default_value: 'localhost'
42
  is_nullable: 0
43
  size: 80
44
45
=head2 port
46
47
  data_type: 'integer'
48
  default_value: 22
49
  is_nullable: 0
50
51
=head2 transport
52
53
  data_type: 'enum'
54
  default_value: 'sftp'
55
  extra: {list => ["ftp","sftp"]}
56
  is_nullable: 0
57
58
=head2 passive
59
60
  data_type: 'tinyint'
61
  default_value: 1
62
  is_nullable: 0
63
64
=head2 user_name
65
66
  data_type: 'varchar'
67
  is_nullable: 1
68
  size: 80
69
70
=head2 password
71
72
  data_type: 'mediumtext'
73
  is_nullable: 1
74
75
=head2 key_file
76
77
  data_type: 'mediumtext'
78
  is_nullable: 1
79
80
=head2 auth_mode
81
82
  data_type: 'enum'
83
  default_value: 'password'
84
  extra: {list => ["password","key_file","noauth"]}
85
  is_nullable: 0
86
87
=head2 download_directory
88
89
  data_type: 'mediumtext'
90
  is_nullable: 1
91
92
=head2 upload_directory
93
94
  data_type: 'mediumtext'
95
  is_nullable: 1
96
97
=head2 status
98
99
  data_type: 'varchar'
100
  is_nullable: 1
101
  size: 32
102
103
=head2 debug
104
105
  data_type: 'tinyint'
106
  default_value: 0
107
  is_nullable: 0
108
109
=cut
110
111
__PACKAGE__->add_columns(
112
  "id",
113
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
114
  "name",
115
  { data_type => "varchar", is_nullable => 0, size => 80 },
116
  "host",
117
  {
118
    data_type => "varchar",
119
    default_value => "localhost",
120
    is_nullable => 0,
121
    size => 80,
122
  },
123
  "port",
124
  { data_type => "integer", default_value => 22, is_nullable => 0 },
125
  "transport",
126
  {
127
    data_type => "enum",
128
    default_value => "sftp",
129
    extra => { list => ["ftp", "sftp"] },
130
    is_nullable => 0,
131
  },
132
  "passive",
133
  { data_type => "tinyint", default_value => 1, is_nullable => 0 },
134
  "user_name",
135
  { data_type => "varchar", is_nullable => 1, size => 80 },
136
  "password",
137
  { data_type => "mediumtext", is_nullable => 1 },
138
  "key_file",
139
  { data_type => "mediumtext", is_nullable => 1 },
140
  "auth_mode",
141
  {
142
    data_type => "enum",
143
    default_value => "password",
144
    extra => { list => ["password", "key_file", "noauth"] },
145
    is_nullable => 0,
146
  },
147
  "download_directory",
148
  { data_type => "mediumtext", is_nullable => 1 },
149
  "upload_directory",
150
  { data_type => "mediumtext", is_nullable => 1 },
151
  "status",
152
  { data_type => "varchar", is_nullable => 1, size => 32 },
153
  "debug",
154
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
155
);
156
157
=head1 PRIMARY KEY
158
159
=over 4
160
161
=item * L</id>
162
163
=back
164
165
=cut
166
167
__PACKAGE__->set_primary_key("id");
168
169
170
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-29 14:29:49
171
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Mr3SRG6aRllMJvaltvwgOw
172
173
__PACKAGE__->add_columns(
174
    '+passive' => { is_boolean => 1 },
175
    '+debug'   => { is_boolean => 1 },
176
);
177
178
=head2 koha_objects_class
179
180
Helper for Koha::Object-based class name resolution.
181
182
=cut
183
184
sub koha_objects_class {
185
    'Koha::SFTP::Servers';
186
}
187
188
=head2 koha_object_class
189
190
Helper for Koha::Object-based class name resolution.
191
192
=cut
193
194
sub koha_object_class {
195
    'Koha::SFTP::Server';
196
}
197
198
1;

Return to bug 35761