1 parent 3706f36 commit e6c2bbbCopy full SHA for e6c2bbb
1 file changed
clickhouse_sqlalchemy/alembic/comparators.py
@@ -17,23 +17,16 @@
17
)
18
19
20
-def _get_reflected_table(connection, table_name, schema=None):
21
- # Для Alembic < 1.11
+def _alembic_reflect_table(connection, table_name, schema=None):
22
if alembic_version < (1, 11):
23
from alembic.util.sqla_compat import _reflect_table
24
-
25
return _reflect_table(connection, table_name, schema)
26
27
- # Для Alembic >= 1.11
28
inspector = inspect(connection)
29
columns = inspector.get_columns(table_name, schema=schema)
30
- # Соберите Table объект при необходимости
31
return columns
32
33
34
-_alembic_reflect_table = _get_reflected_table
35
36
37
def _extract_to_table_name(create_table_query):
38
query = create_table_query
39
# Naive inner name detection
0 commit comments