diff --git a/src/modules/DashboardConfig.py b/src/modules/DashboardConfig.py index 4a4a30df..0accdf30 100644 --- a/src/modules/DashboardConfig.py +++ b/src/modules/DashboardConfig.py @@ -145,7 +145,9 @@ class DashboardConfig: for col_name, col_type in expected_columns.items(): if col_name not in existing_columns: - type_str = col_type().compile(dialect=self.engine.dialect) + type_str = ( + col_type if isinstance(col_type, db.types.TypeEngine) else col_type() + ).compile(dialect=self.engine.dialect) current_app.logger.info(f"Adding missing column '{col_name}' to table '{table_name}'") preparer = self.engine.dialect.identifier_preparer quoted_table = preparer.quote_identifier(table_name)