line |
true |
false |
branch |
25
|
0 |
0 |
@_ == 1 ? : |
27
|
0 |
0 |
unless my $dbh = $args{'dbh'} |
33
|
0 |
0 |
if (ref $args{'tables'} eq 'ARRAY') { } |
|
0 |
0 |
elsif ($args{'tables'}) { } |
42
|
0 |
0 |
unless my $pkg = $args{'pkg'} |
50
|
0 |
0 |
unless my $db_type = $$dbh{'Driver'}{'Name'} |
51
|
0 |
0 |
unless my $driver = {db2 => 'DB2', mysql => 'MySQL', odbc => 'SQLServer', oracle => 'Oracle', pg => 'PostgreSQL', sqlite => 'SQLite', sybase => 'Sybase'}->{lc $db_type} |
52
|
0 |
0 |
if $driver |
53
|
0 |
0 |
if $args{'default_unsigned'} |
54
|
0 |
0 |
if $args{'default_not_null'} |
57
|
0 |
0 |
if ($args{'table_options'}) |
107
|
0 |
0 |
if ($$column_info{'MYSQL_TYPE_NAME'}) |
115
|
0 |
0 |
if (lc($type) =~ /^(enum|set)$/) |
120
|
0 |
0 |
if $opt{'signed'} |
121
|
0 |
0 |
if $opt{'unsigned'} and not $$args{'default_unsigned'} |
123
|
0 |
0 |
if (defined $column_info->column_size) |
126
|
0 |
0 |
if (lc $type eq 'decimal') { } |
|
0 |
0 |
elsif (lc($type) =~ /^(enum|set)$/) { } |
|
0 |
0 |
elsif (lc $type eq 'varchar' and $column_info->column_size == 255) { } |
|
0 |
0 |
elsif (lc($type) =~ /^(int|integer)$/ and $opt{'unsigned'} && $column_info->column_size == 10 || !$opt{'unsigned'} && $column_info->column_size == 11) { } |
|
0 |
0 |
elsif ($$column_info{'MYSQL_TYPE_NAME'} and not $$column_info{'MYSQL_TYPE_NAME'} =~ $column_info->column_size) { } |
155
|
0 |
0 |
if $column_size |
158
|
0 |
0 |
if $column_info->nullable |
159
|
0 |
0 |
unless $column_info->nullable or $$args{'default_not_null'} |
161
|
0 |
0 |
if (defined $column_info->column_def) |
164
|
0 |
0 |
if ($type =~ /^(TIMESTAMP|DATETIME)$/ and $column_def eq 'CURRENT_TIMESTAMP') { } |
172
|
0 |
0 |
if (@{$$args{'primary_key_names'};} == 1 and $$args{'primary_key_names'}[0] eq $column_info->name) |
176
|
0 |
0 |
if ($opt{'auto_increment'} or $$args{'dbh'}{'Driver'}{'Name'} eq 'mysql' and $$column_info{'MYSQL_IS_AUTO_INCREMENT'}) |
197
|
0 |
0 |
if (@{$$args{'primary_key_names'};} > 1) |
210
|
0 |
0 |
if $pk_name{$index_key->column_name} |
211
|
0 |
0 |
if $fk_name{$index_key->column_name} |
216
|
0 |
0 |
if %index_info |
224
|
0 |
0 |
$index_keys[0]->non_unique ? : |
|
0 |
0 |
$index_keys[0]->non_unique && $index_keys[0]->type ? : |
232
|
0 |
0 |
if (@fk_list) |
235
|
0 |
0 |
if ($fk->pktable_name and $fk->fkcolumn_name eq sprintf('%s_id', $fk->pktable_name)) { } |
|
0 |
0 |
elsif ($fk->fkcolumn_name eq 'id' and $fk->pkcolumn_name eq sprintf('%s_id', $fk->fktable_name)) { } |
|
0 |
0 |
elsif ($fk->fkcolumn_name and $fk->pktable_name and $fk->pkcolumn_name) { } |
242
|
0 |
0 |
if ($index_key->column_name eq $fk->pkcolumn_name) |
243
|
0 |
0 |
$index_key->non_unique ? : |
263
|
0 |
0 |
if ($$dbh{'Driver'}{'Name'} eq 'mysql') { } |
296
|
0 |
0 |
@_ == 1 ? : |