-
-
Notifications
You must be signed in to change notification settings - Fork 321
Closed
Labels
command interfaceuse casenot quite a feature and not quite a bug, something we just didn't think ofnot quite a feature and not quite a bug, something we just didn't think of
Description
Describe the use case
This is similar to #524, which appears to at least be implemented for indexes.
SqlAlchemy already supports these operations on DropTable and CreateTable so this would essentially be a pass-through in a similar manner.
Databases / Backends / Drivers targeted
Postgresql
Example Use
Much like drop_index, I'd expect
op.drop_table('foobar', if_exists=True)to produce
DROP TABLE IF EXISTS foobarAdditional context
This is just some insurance for edge cases where a migration partially applies due to external circumstances. i.e. a migration containing two drop_table operations could fail after the first succeeds, but then would require some surgery to work again
Have a nice day!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
command interfaceuse casenot quite a feature and not quite a bug, something we just didn't think ofnot quite a feature and not quite a bug, something we just didn't think of