The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

DBIx::Migration::Directories::Database::mysql - Handle quirks with DBD::mysql

SYNOPSIS

my $dbh = DBIx::Transaction->connect('DBI:mysql:database=test');
my $migration = DBIx::Migration::Directories->new(
dbh => $dbh,
schema => 'MySchema',
...
);

DESCRIPTION

The following methods had to be written differently so that they behave properly under MySQL:

sql_table_exists($table)

See "sql_table_exists" in DBIx::Migration::Directories::Base.

MySQL 4.x does not support the SQL standard "information_schema". This sql_table_exists method instead uses MySQL's custom "SHOW TABLES" syntax to verify the existance of a table.

AUTHOR

Tyler "Crackerjack" MacDonald <japh@crackerjack.net>

LICENSE

Copyright 2009 Tyler "Crackerjack" MacDonald <japh@crackerjack.net>

This is free software; You may distribute it under the same terms as perl itself.

SEE ALSO

DBIx::Migration::Directories, DBD::mysql