<p dir="auto"><strong>Migrated issue, originally created by Dmitry Tyutryumov</strong></p>
<p dir="auto">Hi guys, i need you help.</p>
<p dir="auto">How i can create a schema on ORM, for few tables,</p>
<ul dir="auto">
<li>
<p dir="auto">MetaData doesn't work when schema doesn't exist.</p>
</li>
<li>
<p dir="auto">event.listen(DeclBase.metadata, 'before_create', CreateSchema('schema')) i see an error if schema is exist, but i don't know how to check schema on ORM</p>
</li>
</ul>
<p dir="auto">Will be appreciate for help</p>
<p dir="auto"><strong>Migrated issue, originally created by Rémy Roy (<a href="https://github.com/remyroy">@remyroy</a>)</strong></p>
<p dir="auto">IF EXISTS and IF NOT EXISTS are already part of many DBMSs DDL vocabulary. They have many use cases which are highly useful in some situations.</p>
<p dir="auto">For instance, creating a table if it does not already exists or dropping a column if it exists.</p>
<p dir="auto">It would be nice to have those directives with standard SQLAlchemy DDL methods. I guess they could be implemented using the native support for DBMSs that support them or with some introspection for those that do not.</p>