@@ -, +, @@ --- Koha/Schema/Result/SearchField.pm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) --- a/Koha/Schema/Result/SearchField.pm +++ a/Koha/Schema/Result/SearchField.pm @@ -53,6 +53,13 @@ the human readable name of the field, for display what type of data this holds, relevant when storing it in the search engine +=head2 mandatory + + data_type: 'tinyint' + is_nullable: 1 + +if marked this field is not editable or removable + =cut __PACKAGE__->add_columns( @@ -68,6 +75,8 @@ __PACKAGE__->add_columns( extra => { list => ["", "string", "date", "number", "boolean", "sum"] }, is_nullable => 0, }, + "mandatory", + { data_type => "tinyint", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -114,8 +123,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 13:30:43 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1IenQWmCO16tJ/nIFTFYug +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-18 11:09:53 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:L/EHq8OrXxW9pU3dLrAqcg __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map"); --