<p dir="auto"><strong>Migrated issue, originally created by Chris Withers (<a href="https://github.com/chrisw">@chrisw</a>)</strong></p>
<p dir="auto">I added some custom DDL to a table definition as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="event.listen(
    Observation.__table__,
    'after_create',
    DDL(
        'alter table observation add constraint observation_best ...'
    )
)"><pre class="notranslate"><code class="notranslate">event.listen(
    Observation.__table__,
    'after_create',
    DDL(
        'alter table observation add constraint observation_best ...'
    )
)
</code></pre></div>
<p dir="auto">...but it wasn't firing, not even an exception when I deliberately misspelled the table name ;-)</p>
<p dir="auto">Tracked it down to this class I use to allow one schema to be managed by multiple python packages:</p>
<p dir="auto"><a href="https://github.com/Mortar/mortar_rdb/blob/master/mortar_rdb/controlled.py#L59">https://github.com/Mortar/mortar_rdb/blob/master/mortar_rdb/controlled.py#L59</a></p>
<p dir="auto">This line in particular:</p>
<p dir="auto"><a href="https://github.com/Mortar/mortar_rdb/blob/master/mortar_rdb/controlled.py#L81">https://github.com/Mortar/mortar_rdb/blob/master/mortar_rdb/controlled.py#L81</a></p>
<p dir="auto">It appears that call isn't carrying the event handlers across to the table created in the new metadata object. For my use case, it needs to, but I appreciate my use case may well be a bit of an edge case.</p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">After executing <code class="notranslate">table.tometadata(metadata)</code>, the new table's new column's <code class="notranslate">info</code> dictionaries are references to the original columns' dictionaries instead of a copy of the dictionary.</p>
<p dir="auto">If this is by design for some reason, no hard feelings, close ticket, but seems bad design to me to have the new instances of the columns referencing the original columns' <code class="notranslate">info</code> dictionaries.</p>