alembic 1.11.0__py3-none-any.whl → 1.11.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alembic/__init__.py +1 -1
- alembic/autogenerate/api.py +0 -2
- alembic/autogenerate/compare.py +24 -35
- alembic/autogenerate/render.py +24 -38
- alembic/command.py +0 -1
- alembic/config.py +20 -7
- alembic/context.pyi +2 -2
- alembic/ddl/base.py +3 -3
- alembic/ddl/impl.py +14 -9
- alembic/ddl/mssql.py +8 -9
- alembic/ddl/mysql.py +0 -1
- alembic/ddl/oracle.py +1 -1
- alembic/ddl/postgresql.py +35 -12
- alembic/ddl/sqlite.py +3 -5
- alembic/op.pyi +32 -20
- alembic/operations/base.py +34 -22
- alembic/operations/batch.py +10 -8
- alembic/operations/ops.py +60 -36
- alembic/operations/toimpl.py +18 -4
- alembic/runtime/environment.py +2 -3
- alembic/runtime/migration.py +3 -7
- alembic/script/base.py +3 -7
- alembic/script/revision.py +0 -4
- alembic/script/write_hooks.py +8 -7
- alembic/templates/async/script.py.mako +6 -4
- alembic/templates/generic/script.py.mako +6 -4
- alembic/templates/multidb/script.py.mako +6 -4
- alembic/testing/assertions.py +0 -3
- alembic/testing/env.py +0 -3
- alembic/testing/fixtures.py +0 -2
- alembic/testing/suite/_autogen_fixtures.py +0 -1
- alembic/util/langhelpers.py +0 -1
- alembic/util/pyfiles.py +0 -1
- alembic/util/sqla_compat.py +4 -5
- {alembic-1.11.0.dist-info → alembic-1.11.2.dist-info}/METADATA +1 -1
- {alembic-1.11.0.dist-info → alembic-1.11.2.dist-info}/RECORD +40 -40
- {alembic-1.11.0.dist-info → alembic-1.11.2.dist-info}/WHEEL +1 -1
- {alembic-1.11.0.dist-info → alembic-1.11.2.dist-info}/LICENSE +0 -0
- {alembic-1.11.0.dist-info → alembic-1.11.2.dist-info}/entry_points.txt +0 -0
- {alembic-1.11.0.dist-info → alembic-1.11.2.dist-info}/top_level.txt +0 -0
alembic/util/sqla_compat.py
CHANGED
@@ -46,7 +46,7 @@ if TYPE_CHECKING:
|
|
46
46
|
from sqlalchemy.sql.selectable import Select
|
47
47
|
from sqlalchemy.sql.selectable import TableClause
|
48
48
|
|
49
|
-
_CE = TypeVar("_CE", bound=Union["ColumnElement", "SchemaItem"])
|
49
|
+
_CE = TypeVar("_CE", bound=Union["ColumnElement[Any]", "SchemaItem"])
|
50
50
|
|
51
51
|
|
52
52
|
def _safe_int(value: str) -> Union[int, str]:
|
@@ -390,7 +390,7 @@ def _find_columns(clause):
|
|
390
390
|
|
391
391
|
|
392
392
|
def _remove_column_from_collection(
|
393
|
-
collection: ColumnCollection, column: Union[Column, ColumnClause]
|
393
|
+
collection: ColumnCollection, column: Union[Column[Any], ColumnClause[Any]]
|
394
394
|
) -> None:
|
395
395
|
"""remove a column from a ColumnCollection."""
|
396
396
|
|
@@ -408,8 +408,8 @@ def _remove_column_from_collection(
|
|
408
408
|
|
409
409
|
|
410
410
|
def _textual_index_column(
|
411
|
-
table: Table, text_: Union[str, TextClause, ColumnElement]
|
412
|
-
) -> Union[ColumnElement, Column]:
|
411
|
+
table: Table, text_: Union[str, TextClause, ColumnElement[Any]]
|
412
|
+
) -> Union[ColumnElement[Any], Column[Any]]:
|
413
413
|
"""a workaround for the Index construct's severe lack of flexibility"""
|
414
414
|
if isinstance(text_, str):
|
415
415
|
c = Column(text_, sqltypes.NULLTYPE)
|
@@ -524,7 +524,6 @@ def _get_constraint_final_name(
|
|
524
524
|
constraint, _alembic_quote=False
|
525
525
|
)
|
526
526
|
else:
|
527
|
-
|
528
527
|
# prior to SQLAlchemy 1.4, work around quoting logic to get at the
|
529
528
|
# final compiled name without quotes.
|
530
529
|
if hasattr(constraint.name, "quote"):
|
@@ -1,56 +1,56 @@
|
|
1
|
-
alembic/__init__.py,sha256=
|
1
|
+
alembic/__init__.py,sha256=W4ulKGrrCzgM2WulAVO_7GhbBwgGEz7cE-ls8EUwJ4A,75
|
2
2
|
alembic/__main__.py,sha256=373m7-TBh72JqrSMYviGrxCHZo-cnweM8AGF8A22PmY,78
|
3
|
-
alembic/command.py,sha256=
|
4
|
-
alembic/config.py,sha256=
|
3
|
+
alembic/command.py,sha256=yrikVYYqveQGraXnCM8IIyaceiGNBiUYZp-xSQgLczI,21343
|
4
|
+
alembic/config.py,sha256=Cc8q8VIxcFRrrKzV96Grxh2XfL6ccZ7rOQka32RZPkE,21908
|
5
5
|
alembic/context.py,sha256=hK1AJOQXJ29Bhn276GYcosxeG7pC5aZRT5E8c4bMJ4Q,195
|
6
|
-
alembic/context.pyi,sha256=
|
6
|
+
alembic/context.pyi,sha256=85bQfQZ2eqbJxbKIIRYmK8XmZj70H9m_Edu1Mp7eSAc,30841
|
7
7
|
alembic/environment.py,sha256=MM5lPayGT04H3aeng1H7GQ8HEAs3VGX5yy6mDLCPLT4,43
|
8
8
|
alembic/migration.py,sha256=MV6Fju6rZtn2fTREKzXrCZM6aIBGII4OMZFix0X-GLs,41
|
9
9
|
alembic/op.py,sha256=flHtcsVqOD-ZgZKK2pv-CJ5Cwh-KJ7puMUNXzishxLw,167
|
10
|
-
alembic/op.pyi,sha256=
|
10
|
+
alembic/op.pyi,sha256=1qv0PLrEUskERB5QoI39qbLjJi5iGTV_r2Ri6tsINXE,48789
|
11
11
|
alembic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
alembic/autogenerate/__init__.py,sha256=4IHgWH89pForRq-yCDZhGjjVtsfGX5ECWNPuUs8nGUk,351
|
13
|
-
alembic/autogenerate/api.py,sha256=
|
14
|
-
alembic/autogenerate/compare.py,sha256=
|
15
|
-
alembic/autogenerate/render.py,sha256=
|
13
|
+
alembic/autogenerate/api.py,sha256=ngyTd1kZ_1pvhT2UdETTR0y17y-xLDW2Zab9nSoWZdM,21688
|
14
|
+
alembic/autogenerate/compare.py,sha256=Ri6T3JcGN9AaQ_t_rS4wI-7Sn0kCAuAoxgq9lCKWFlA,46787
|
15
|
+
alembic/autogenerate/render.py,sha256=tZCzw8vPBqTPmudiv_oGeWTE9oh42j1JO8sqsOD0dMg,34684
|
16
16
|
alembic/autogenerate/rewriter.py,sha256=a6jKj5cfk_jhmhwjyTlm5q1j_vLhZkjBfzCY2XdpvkU,7427
|
17
17
|
alembic/ddl/__init__.py,sha256=xXr1W6PePe0gCLwR42ude0E6iru9miUFc1fCeQN4YP8,137
|
18
|
-
alembic/ddl/base.py,sha256=
|
19
|
-
alembic/ddl/impl.py,sha256=
|
20
|
-
alembic/ddl/mssql.py,sha256=
|
21
|
-
alembic/ddl/mysql.py,sha256=
|
22
|
-
alembic/ddl/oracle.py,sha256=
|
23
|
-
alembic/ddl/postgresql.py,sha256=
|
24
|
-
alembic/ddl/sqlite.py,sha256=
|
18
|
+
alembic/ddl/base.py,sha256=cCY3NldMRggrKd9bZ0mFRBE9GNDaAy0UJcM3ey4Utgw,9638
|
19
|
+
alembic/ddl/impl.py,sha256=hxPcletHpSDjsMP9XQy3Hn7jP9UzzhAxXavTOEnMN6E,24156
|
20
|
+
alembic/ddl/mssql.py,sha256=sFyg8TDUr3_WVBx1UJHxdQf3yOztE2Xad0JXub2vrU0,13660
|
21
|
+
alembic/ddl/mysql.py,sha256=ff8OE0zQ8YYjAgltBbtjQkDR-g9z65DNeFjEMm4sX6c,16675
|
22
|
+
alembic/ddl/oracle.py,sha256=E0VaZaUM_5mwqNiJVA3zOAK-cuHVVIv_-NmUbH1JuGQ,6097
|
23
|
+
alembic/ddl/postgresql.py,sha256=DTxegBrakgZGmt2NYrgkawbAV8LlVsD-gxWOOlHgle8,25499
|
24
|
+
alembic/ddl/sqlite.py,sha256=9q7NAxyeFwn9kWwQSc9RLeMFSos8waM7x9lnXdByh44,7613
|
25
25
|
alembic/operations/__init__.py,sha256=KF0MGY8xvXtXvs_acRll9lNj_JjILnffufHtGoVmf0Y,262
|
26
|
-
alembic/operations/base.py,sha256=
|
27
|
-
alembic/operations/batch.py,sha256=
|
28
|
-
alembic/operations/ops.py,sha256=
|
26
|
+
alembic/operations/base.py,sha256=ZPftKf2KnuasoYVBHFoNv3MDZsQtW_QI7RetzKwuil8,72875
|
27
|
+
alembic/operations/batch.py,sha256=uMvGJDlcTs0GSHasg4Gsdv1YcXeLOK_1lkRl3jk1ezY,26954
|
28
|
+
alembic/operations/ops.py,sha256=vzNrxt2pYmzFA7_enCWsHmtPc7KwNJJsEn9NV2GuTpQ,93787
|
29
29
|
alembic/operations/schemaobj.py,sha256=-tWad8pgWUNWucbpTnPuFK_EEl913C0RADJhlBnrjhc,9393
|
30
|
-
alembic/operations/toimpl.py,sha256=
|
30
|
+
alembic/operations/toimpl.py,sha256=K8nUmojtL94tyLSWdDD-e94IbghZ19k55iBIMvzMm5E,6993
|
31
31
|
alembic/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
|
-
alembic/runtime/environment.py,sha256=
|
33
|
-
alembic/runtime/migration.py,sha256=
|
32
|
+
alembic/runtime/environment.py,sha256=dBLnVKS603AtE8Q6HWatYIXDervt-EFcX3WnSrGH0e0,40587
|
33
|
+
alembic/runtime/migration.py,sha256=lMbwGvOVZSbpzn69JdCNE9ospcPVI7tSfcVpLwODVOI,49470
|
34
34
|
alembic/script/__init__.py,sha256=lSj06O391Iy5avWAiq8SPs6N8RBgxkSPjP8wpXcNDGg,100
|
35
|
-
alembic/script/base.py,sha256=
|
36
|
-
alembic/script/revision.py,sha256=
|
37
|
-
alembic/script/write_hooks.py,sha256=
|
35
|
+
alembic/script/base.py,sha256=bY4kYshmCjacc0sUWeJYuiTqtURBvvG-b2Mf5yaIl0A,37197
|
36
|
+
alembic/script/revision.py,sha256=UI52uwx1e8ZGBgwOFLACXvM912W3LWodEDUaM23UeKI,61329
|
37
|
+
alembic/script/write_hooks.py,sha256=3BXsMPiU820RZMxj_-vRaHY49WGHUW9H8Eeq6zEl1uk,4168
|
38
38
|
alembic/templates/async/README,sha256=ISVtAOvqvKk_5ThM5ioJE-lMkvf9IbknFUFVU_vPma4,58
|
39
39
|
alembic/templates/async/alembic.ini.mako,sha256=eacsRWG1_IE_Z1YhDzZ90eKCM222R-ymuEn4Ryms43o,3297
|
40
40
|
alembic/templates/async/env.py,sha256=zbOCf3Y7w2lg92hxSwmG1MM_7y56i_oRH4AKp0pQBYo,2389
|
41
|
-
alembic/templates/async/script.py.mako,sha256=
|
41
|
+
alembic/templates/async/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
42
42
|
alembic/templates/generic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
43
43
|
alembic/templates/generic/alembic.ini.mako,sha256=86Texhjq40QQsO9UJP7PDzzPEzGgedYDdHUJ1YOjXco,3406
|
44
44
|
alembic/templates/generic/env.py,sha256=TLRWOVW3Xpt_Tpf8JFzlnoPn_qoUu8UV77Y4o9XD6yI,2103
|
45
|
-
alembic/templates/generic/script.py.mako,sha256=
|
45
|
+
alembic/templates/generic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
46
46
|
alembic/templates/multidb/README,sha256=dWLDhnBgphA4Nzb7sNlMfCS3_06YqVbHhz-9O5JNqyI,606
|
47
47
|
alembic/templates/multidb/alembic.ini.mako,sha256=76AK25gXYz6N6PriqLakfbN-6dFNgGp2T8wOF_pBkdw,3500
|
48
48
|
alembic/templates/multidb/env.py,sha256=6zNjnW8mXGUk7erTsAvrfhvqoczJ-gagjVq1Ypg2YIQ,4230
|
49
|
-
alembic/templates/multidb/script.py.mako,sha256=
|
49
|
+
alembic/templates/multidb/script.py.mako,sha256=N06nMtNSwHkgl0EBXDyMt8njp9tlOesR583gfq21nbY,1090
|
50
50
|
alembic/testing/__init__.py,sha256=kOxOh5nwmui9d-_CCq9WA4Udwy7ITjm453w74CTLZDo,1159
|
51
|
-
alembic/testing/assertions.py,sha256=
|
52
|
-
alembic/testing/env.py,sha256=
|
53
|
-
alembic/testing/fixtures.py,sha256=
|
51
|
+
alembic/testing/assertions.py,sha256=1CbJk8c8-WO9eJ0XJ0jJvMsNRLUrXV41NOeIJUAlOBk,5015
|
52
|
+
alembic/testing/env.py,sha256=zJacVb_z6uLs2U1TtkmnFH9P3_F-3IfYbVv4UEPOvfo,10754
|
53
|
+
alembic/testing/fixtures.py,sha256=NyP4wE_dFN9ZzSGiBagRu1cdzkka03nwJYJYHYrrkSY,9112
|
54
54
|
alembic/testing/requirements.py,sha256=HxmCXCss7Ne47AqoAKOr8jhkokDpPzw8o1SKpvVajH8,4932
|
55
55
|
alembic/testing/schemacompare.py,sha256=7_4_0Y4UvuMiZ66pz1RC_P8Z1kYOP-R4Y5qUcNmcMKA,4535
|
56
56
|
alembic/testing/util.py,sha256=CQrcQDA8fs_7ME85z5ydb-Bt70soIIID-qNY1vbR2dg,3350
|
@@ -58,7 +58,7 @@ alembic/testing/warnings.py,sha256=RxA7x_8GseANgw07Us8JN_1iGbANxaw6_VitX2ZGQH4,1
|
|
58
58
|
alembic/testing/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
59
59
|
alembic/testing/plugin/bootstrap.py,sha256=9C6wtjGrIVztZ928w27hsQE0KcjDLIUtUN3dvZKsMVk,50
|
60
60
|
alembic/testing/suite/__init__.py,sha256=MvE7-hwbaVN1q3NM-ztGxORU9dnIelUCINKqNxewn7Y,288
|
61
|
-
alembic/testing/suite/_autogen_fixtures.py,sha256=
|
61
|
+
alembic/testing/suite/_autogen_fixtures.py,sha256=cDq1pmzHe15S6dZPGNC6sqFaCQ3hLT_oPV2IDigUGQ0,9880
|
62
62
|
alembic/testing/suite/test_autogen_comments.py,sha256=aEGqKUDw4kHjnDk298aoGcQvXJWmZXcIX_2FxH4cJK8,6283
|
63
63
|
alembic/testing/suite/test_autogen_computed.py,sha256=qJeBpc8urnwTFvbwWrSTIbHVkRUuCXP-dKaNbUK2U2U,6077
|
64
64
|
alembic/testing/suite/test_autogen_diffs.py,sha256=T4SR1n_kmcOKYhR4W1-dA0e5sddJ69DSVL2HW96kAkE,8394
|
@@ -70,13 +70,13 @@ alembic/util/__init__.py,sha256=cPF_jjFx7YRBByHHDqW3wxCIHsqnGfncEr_i238aduY,1202
|
|
70
70
|
alembic/util/compat.py,sha256=-cL6Jbi53XydzR5Mr-O7nU_pBaTYSrBfi0xqjrkiPXc,1911
|
71
71
|
alembic/util/editor.py,sha256=JIz6_BdgV8_oKtnheR6DZoB7qnrHrlRgWjx09AsTsUw,2546
|
72
72
|
alembic/util/exc.py,sha256=KQTru4zcgAmN4IxLMwLFS56XToUewaXB7oOLcPNjPwg,98
|
73
|
-
alembic/util/langhelpers.py,sha256=
|
73
|
+
alembic/util/langhelpers.py,sha256=ZFGyGygHRbztOeajpajppyhd-Gp4PB5slMuvCFVrnmg,8591
|
74
74
|
alembic/util/messaging.py,sha256=B6T-loMhIOY3OTbG47Ywp1Df9LZn18PgjwpwLrD1VNg,3042
|
75
|
-
alembic/util/pyfiles.py,sha256=
|
76
|
-
alembic/util/sqla_compat.py,sha256=
|
77
|
-
alembic-1.11.
|
78
|
-
alembic-1.11.
|
79
|
-
alembic-1.11.
|
80
|
-
alembic-1.11.
|
81
|
-
alembic-1.11.
|
82
|
-
alembic-1.11.
|
75
|
+
alembic/util/pyfiles.py,sha256=95J01FChN0j2uP3p72mjaOQvh5wC6XbdGtTDK8oEzsQ,3373
|
76
|
+
alembic/util/sqla_compat.py,sha256=QySSQQdjpj64AE0E5mgn3eCxZwyuoJFObNuKhPPNCFs,17711
|
77
|
+
alembic-1.11.2.dist-info/LICENSE,sha256=soUmiob0QW6vTQWyrjiAwVb3xZqPk1pAK8BW6vszrwg,1058
|
78
|
+
alembic-1.11.2.dist-info/METADATA,sha256=9Nk-Z5lvOcopEXg-kyRwduNw6r5U4JzXxmlrTGdhwd0,7229
|
79
|
+
alembic-1.11.2.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
|
80
|
+
alembic-1.11.2.dist-info/entry_points.txt,sha256=aykM30soxwGN0pB7etLc1q0cHJbL9dy46RnK9VX4LLw,48
|
81
|
+
alembic-1.11.2.dist-info/top_level.txt,sha256=FwKWd5VsPFC8iQjpu1u9Cn-JnK3-V1RhUCmWqz1cl-s,8
|
82
|
+
alembic-1.11.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|