2 package Koha
::Schema
::Result
::MarcModificationTemplateAction
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::MarcModificationTemplateAction
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<marc_modification_template_actions>
22 __PACKAGE__
->table("marc_modification_template_actions");
46 extra: {list => ["delete_field","add_field","update_field","move_field","copy_field","copy_and_replace_field"]}
85 =head2 to_regex_search
87 data_type: 'mediumtext'
90 =head2 to_regex_replace
92 data_type: 'mediumtext'
95 =head2 to_regex_modifiers
98 default_value: (empty string)
105 extra: {list => ["if","unless"]}
108 =head2 conditional_field
114 =head2 conditional_subfield
120 =head2 conditional_comparison
123 extra: {list => ["exists","not_exists","equals","not_equals"]}
126 =head2 conditional_value
128 data_type: 'mediumtext'
131 =head2 conditional_regex
139 data_type: 'mediumtext'
144 __PACKAGE__
->add_columns(
146 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
148 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
150 { data_type
=> "integer", is_nullable
=> 0 },
161 "copy_and_replace_field",
167 { data_type
=> "smallint", default_value
=> 0, is_nullable
=> 0 },
169 { data_type
=> "varchar", is_nullable
=> 0, size
=> 3 },
171 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
173 { data_type
=> "varchar", is_nullable
=> 1, size
=> 100 },
175 { data_type
=> "varchar", is_nullable
=> 1, size
=> 3 },
177 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
179 { data_type
=> "mediumtext", is_nullable
=> 1 },
181 { data_type
=> "mediumtext", is_nullable
=> 1 },
182 "to_regex_modifiers",
183 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 1, size
=> 8 },
187 extra
=> { list
=> ["if", "unless"] },
191 { data_type
=> "varchar", is_nullable
=> 1, size
=> 3 },
192 "conditional_subfield",
193 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
194 "conditional_comparison",
197 extra
=> { list
=> ["exists", "not_exists", "equals", "not_equals"] },
201 { data_type
=> "mediumtext", is_nullable
=> 1 },
203 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
205 { data_type
=> "mediumtext", is_nullable
=> 1 },
218 __PACKAGE__
->set_primary_key("mmta_id");
226 Related object: L<Koha::Schema::Result::MarcModificationTemplate>
230 __PACKAGE__
->belongs_to(
232 "Koha::Schema::Result::MarcModificationTemplate",
233 { template_id
=> "template_id" },
234 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
238 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-19 17:32:57
239 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dAUr9aGlNZleldYbjJHdmw
242 # You can replace this text with custom code or comments, and it will be preserved on regeneration