AntiPattern
Metadata and Transaction Ordering
out-of-order-schema-metadata-transactions
Schema-creation and snapshot metadata get produced or applied out of order (hooks firing before metadata exists, snapshot files corrupted, and related INSERTs/FK lookups racing), causing migrations to diff the wrong state or enforce inconsistent foreign keys.