NAME
DBIO::Informix::Diff::Index - Diff operations for Informix indexes
VERSION
version 0.900007
DESCRIPTION
Represents an index-level diff operation in Informix: CREATE INDEX, DROP INDEX, or a DROP + CREATE pair when an existing index's uniqueness or column list changes (Informix has no single ALTER INDEX statement, so a definition change is emitted as two ops).
ATTRIBUTES
replaced
True for the drop that is the first half of a drop + create of one index whose definition changed: it replaces the index and drops none, so it counts as changing, not destructive (core ADR 0080, "destructive_operations" in DBIO::Diff::Base).
METHODS
diff
my @ops = DBIO::Informix::Diff::Index->diff(
$source_indexes, $target_indexes,
);
Compares two index hashrefs (keyed by table name) and returns create ops for indexes present only in target, drop ops for indexes only in source, and a drop + create pair for indexes whose definition (uniqueness or column list) differs. Change detection delegates to "changed_index_fields" in DBIO::Diff::Compare.
as_sql
Returns the SQL for this operation. create emits CREATE [UNIQUE] INDEX. drop emits DROP INDEX.
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.