NAME

DBIO::MySQL::Deploy - Deploy and upgrade MySQL/MariaDB schemas via test-deploy-and-compare

VERSION

version 0.900000

DESCRIPTION

DBIO::MySQL::Deploy orchestrates the deployment and upgrade of MySQL/MariaDB schemas using a test-deploy-and-compare strategy: it deploys the desired schema into a freshly created temporary CREATE DATABASE database, introspects it, and diffs the result against the live database. See DBIO::Deploy::Base for the shared install/apply/upgrade flow; see DBIO::Deploy::Base::TempDatabase for the temp-database orchestration this driver inherits.

my $deploy = DBIO::MySQL::Deploy->new(
    schema => MyApp::DB->connect($dsn, $user, $pass),
);

$deploy->install;     # fresh install
$deploy->upgrade;     # diff + apply

ATTRIBUTES

temp_db_prefix

Prefix for temporary databases created during diff. Defaults to _dbio_tmp_. The full name includes the PID and current timestamp. Inherited from DBIO::Deploy::Base::TempDatabase.

AUTHOR

DBIO & DBIx::Class Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.