From 3e147f8693f518ce2b75935798d9e8b0acacaecf Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 2 Apr 2024 07:45:55 -0700 Subject: [PATCH] fix: alembic's 'superset db migrate' fails with CompileError (#27846) --- superset/connectors/sqla/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py index 5a644188bf2d1..ce4632fc026e0 100644 --- a/superset/connectors/sqla/models.py +++ b/superset/connectors/sqla/models.py @@ -2055,7 +2055,10 @@ class RowLevelSecurityFilter(Model, AuditMixinNullable): name = Column(String(255), unique=True, nullable=False) description = Column(Text) filter_type = Column( - Enum(*[filter_type.value for filter_type in utils.RowLevelSecurityFilterType]) + Enum( + *[filter_type.value for filter_type in utils.RowLevelSecurityFilterType], + name="filter_type_enum", + ), ) group_key = Column(String(255), nullable=True) roles = relationship(