Tim Abbott
afecb2eca6
migrations: Add missing elidable tags on RunPython/RunSQL steps.
...
This helps the squashmigrations tool know that it can squash these.
2024-08-23 17:15:35 -07:00
Anders Kaseorg
0628c3cac8
migrations: Import BaseDatabaseSchemaEditor from its canonical module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-05 14:46:28 -08:00
Anders Kaseorg
df001db1a9
black: Reformat with Black 23.
...
Black 23 enforces some slightly more specific rules about empty line
counts and redundant parenthesis removal, but the result is still
compatible with Black 22.
(This does not actually upgrade our Python environment to Black 23
yet.)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-02-02 10:40:13 -08:00
Zixuan James Li
d5517932cd
typing: Use BaseDatabaseSchemaEditor in place of DatabaseSchemaEditor.
...
This is a part of #18777 .
Signed-off-by: Zixuan James Li <359101898@qq.com>
2022-05-30 14:18:53 -07:00
Alex Vandiver
35e27aef4a
migrations: Remove the possibly-duplicated emoji re-uploading.
...
In 85e531e377
, we duplicated this block
of migration code to fix a bug, but moving it (aka deleting the
original copy) is a cleaner solution.
2022-04-01 17:51:00 -07:00
Tim Abbott
85e531e377
migrations: Repeat part of migration 0376.
...
The blockquote explains the motivation for this change in detail.
Fixes #21608 .
2022-04-01 15:20:43 -07:00