Bug 15533 - DBRev - Update OldReserve schema file to match database schema
[koha.git] / Koha / Schema / Result / SearchMarcMap.pm
index 45654a1..03bc943 100644 (file)
@@ -53,14 +53,6 @@ what MARC type this map is for
 
 the MARC specifier for this field
 
-=head2 facet
-
-  data_type: 'tinyint'
-  default_value: 0
-  is_nullable: 1
-
-true if a facet field should be generated for this
-
 =cut
 
 __PACKAGE__->add_columns(
@@ -80,8 +72,6 @@ __PACKAGE__->add_columns(
   },
   "marc_field",
   { data_type => "varchar", is_nullable => 0, size => 255 },
-  "facet",
-  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
 );
 
 =head1 PRIMARY KEY
@@ -98,21 +88,21 @@ __PACKAGE__->set_primary_key("id");
 
 =head1 UNIQUE CONSTRAINTS
 
-=head2 C<index_name_2>
+=head2 C<index_name>
 
 =over 4
 
 =item * L</index_name>
 
-=item * L</marc_type>
-
 =item * L</marc_field>
 
+=item * L</marc_type>
+
 =back
 
 =cut
 
-__PACKAGE__->add_unique_constraint("index_name_2", ["index_name", "marc_type", "marc_field"]);
+__PACKAGE__->add_unique_constraint("index_name", ["index_name", "marc_field", "marc_type"]);
 
 =head1 RELATIONS
 
@@ -131,20 +121,10 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
-=head2 search_fields
 
-Type: many_to_many
-
-Composing rels: L</search_marc_to_fields> -> search_field
-
-=cut
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-12 16:41:47
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nKMOxnAJST3zNN6Kxj2ynA
 
 __PACKAGE__->many_to_many("search_fields", "search_marc_to_fields", "search_field");
 
-
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-06-10 14:32:07
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9Xz04ajKUJXxwJ5pdo+cUQ
-
-
-# You can replace this text with custom code or comments, and it will be preserved on regeneration
 1;