2 package Koha
::Schema
::Result
::ImportBatch
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ImportBatch
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<import_batches>
22 __PACKAGE__
->table("import_batches");
26 =head2 import_batch_id
60 =head2 upload_timestamp
62 data_type: 'timestamp'
63 datetime_undef_if_invalid: 1
64 default_value: current_timestamp
70 default_value: 'create_new'
71 extra: {list => ["replace","create_new","use_template","ignore"]}
77 default_value: 'create_new'
78 extra: {list => ["create_new","ignore"]}
84 default_value: 'always_add'
85 extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore","replace"]}
91 default_value: 'staging'
92 extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
98 default_value: 'batch'
99 extra: {list => ["batch","z3950","webservice"]}
105 default_value: 'biblio'
106 extra: {list => ["biblio","auth","holdings"]}
117 data_type: 'longtext'
122 __PACKAGE__
->add_columns(
124 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
126 { data_type
=> "integer", is_nullable
=> 1 },
128 { data_type
=> "integer", is_nullable
=> 1 },
130 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
132 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 0 },
134 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 0 },
137 data_type
=> "timestamp",
138 datetime_undef_if_invalid
=> 1,
139 default_value
=> \"current_timestamp
",
145 default_value => "create_new
",
146 extra => { list => ["replace
", "create_new
", "use_template
", "ignore
"] },
152 default_value => "create_new
",
153 extra => { list => ["create_new
", "ignore
"] },
159 default_value => "always_add
",
163 "add_only_for_matches
",
174 default_value => "staging
",
191 default_value => "batch
",
192 extra => { list => ["batch
", "z3950
", "webservice
"] },
198 default_value => "biblio
",
199 extra => { list => ["biblio
", "auth
", "holdings
"] },
203 { data_type => "varchar
", is_nullable => 1, size => 100 },
205 { data_type => "longtext
", is_nullable => 1 },
212 =item * L</import_batch_id>
218 __PACKAGE__->set_primary_key("import_batch_id
");
222 =head2 import_records
226 Related object: L<Koha::Schema::Result::ImportRecord>
230 __PACKAGE__->has_many(
232 "Koha
::Schema
::Result
::ImportRecord
",
233 { "foreign
.import_batch_id
" => "self
.import_batch_id
" },
234 { cascade_copy => 0, cascade_delete => 0 },
238 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
239 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:41giNJCRD9WXC4IGO/1D3A
242 # You can replace this text with custom content, and it will be preserved on regeneration