From 6f1ca0a8583ff4bb5ea430757a9eda3ab6775a88 Mon Sep 17 00:00:00 2001 From: "artem.golovin" Date: Sat, 13 Apr 2024 10:09:15 +0400 Subject: [PATCH] Fix case sensitivity of table name by quoting it --- alembic_postgresql_enum/get_enum_data/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic_postgresql_enum/get_enum_data/types.py b/alembic_postgresql_enum/get_enum_data/types.py index d71bd7f..229a167 100644 --- a/alembic_postgresql_enum/get_enum_data/types.py +++ b/alembic_postgresql_enum/get_enum_data/types.py @@ -48,7 +48,7 @@ def table_name_with_schema(self): prefix = f"{self.table_schema}." else: prefix = "" - return f"{prefix}{self.table_name}" + return f'"{prefix}{self.table_name}"' EnumNamesToValues = Dict[str, Tuple[str, ...]]