ensembl-hive  2.8.1
Schema.pm
Go to the documentation of this file.
1 =head1 LICENSE
2 
3 See the NOTICE file distributed with this work for additional information
4 regarding copyright ownership.
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 
18 =head1 DESCRIPTION
19 
20 A DBIC schema base class used by Xref::DB
21 
22 =cut
23 
24 package Xref::Schema;
25 
26 use strict;
27 use warnings;
28 use utf8;
29 
30 use base 'DBIx::Class::Schema';
31 
32 __PACKAGE__->load_namespaces;
33 
34 =head2 sqlt_deploy_hook
35 
36 Set all tables engine to MyISAM
37 
38 =cut
39 
40 sub sqlt_deploy_hook {
41  my ($self, $sqlt_schema) = @_;
42 
43  for my $table ($sqlt_schema->get_tables) {
44  $table->extra(mysql_table_type => 'MyISAM');
45  }
46 
47  return;
48 }
49 
50 1;
Xref::Schema
Definition: ChecksumXref.pm:3
Xref::DB
Definition: DB.pm:40
Xref
Definition: DB.pm:8