Python: Add up-/downgrade scripts

Adds up- and downgrade scripts for the support for type parameter
defaults.

In the upgrade direction we do nothing, matching the behaviour of
`getDefault` not having a result for old databases.

In the downgrade direction, we explicitly remove the relevant child (via
the `py_exprs` database relation) for `TypeVar`, `TypeVarTuple`, and
`ParamSpec` parameters.
This commit is contained in:
Taus
2024-10-09 12:39:53 +00:00
parent 819b3d77ab
commit 8630f57710
7 changed files with 4985 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
description: Add support for type parameter defaults.
compatibility: backwards