NAME
DBIO::MySQL::Diff::ForeignKey - Diff operations for MySQL/MariaDB foreign keys
VERSION
version 0.900000
DESCRIPTION
Represents a foreign key diff operation: ADD CONSTRAINT or DROP FOREIGN KEY. FKs that already exist on a brand-new table are created inline by DBIO::MySQL::Diff::Table -- this module only handles FK changes on tables that exist in both source and target.
FK identity is by constraint_name. A definition change becomes a drop-then-add pair (MySQL has no ALTER FOREIGN KEY).
METHODS
diff
my @ops = DBIO::MySQL::Diff::ForeignKey->diff(
$source_fks, $target_fks, $source_tables, $target_tables,
);
as_sql
summary
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.