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