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","update_field","move_field","copy_field"]}
85 =head2 to_regex_search
90 =head2 to_regex_replace
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
131 =head2 conditional_regex
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 },
155 list => ["delete_field", "update_field", "move_field", "copy_field"],
160 { data_type => "smallint", default_value => 0, is_nullable => 0 },
162 { data_type => "varchar", is_nullable => 0, size => 3 },
164 { data_type => "varchar", is_nullable => 1, size => 1 },
166 { data_type => "varchar", is_nullable => 1, size => 100 },
168 { data_type => "varchar", is_nullable => 1, size => 3 },
170 { data_type => "varchar", is_nullable => 1, size => 1 },
172 { data_type => "text", is_nullable => 1 },
174 { data_type => "text", is_nullable => 1 },
175 "to_regex_modifiers",
176 { data_type => "varchar", default_value => "", is_nullable => 1, size => 8 },
180 extra => { list => ["if", "unless"] },
184 { data_type => "varchar", is_nullable => 1, size => 3 },
185 "conditional_subfield",
186 { data_type => "varchar", is_nullable => 1, size => 1 },
187 "conditional_comparison",
190 extra => { list => ["exists", "not_exists", "equals", "not_equals"] },
194 { data_type => "text", is_nullable => 1 },
196 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
198 { data_type => "text", is_nullable => 1 },
211 __PACKAGE__->set_primary_key("mmta_id");
219 Related object: L<Koha::Schema::Result::MarcModificationTemplate>
223 __PACKAGE__->belongs_to(
225 "Koha::Schema::Result::MarcModificationTemplate",
226 { template_id => "template_id" },
227 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
231 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 22:03:59
232 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sl0AD0sWPYcKRjHN3l3eFg
235 # You can replace this text with custom code or comments, and it will be preserved on regeneration