-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger events before and after drop table statements
The ``op.drop_table()`` operation directive will now trigger the ``before_drop()`` and ``after_drop()`` DDL event hooks at the table level, which is similar to how the ``before_create()`` and ``after_create()`` hooks are triggered by the ``op.create_table()`` directive. Note that as ``op.drop_table()`` accepts only a table name and optional schema name, the ``Table`` object received by the event will not have any information within it other than the table name and schema name. Fixes: #1037 Closes: #1036 Pull-request: #1036 Pull-request-sha: ea44e7f Change-Id: I20a1702e17ed88054206d964152ce05b81d0f89e
- Loading branch information
1 parent
188dd8b
commit f734560
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. change:: | ||
:tags: usecase, operations | ||
:tickets: 1037 | ||
|
||
The ``op.drop_table()`` operation directive will now trigger the | ||
``before_drop()`` and ``after_drop()`` DDL event hooks at the table level, | ||
which is similar to how the ``before_create()`` and ``after_create()`` | ||
hooks are triggered by the ``op.create_table()`` directive. Note that as | ||
``op.drop_table()`` accepts only a table name and optional schema name, the | ||
``Table`` object received by the event will not have any information within | ||
it other than the table name and schema name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters