This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e147f8693 fix: alembic's 'superset db migrate' fails with 
CompileError (#27846)
3e147f8693 is described below

commit 3e147f8693f518ce2b75935798d9e8b0acacaecf
Author: Maxime Beauchemin <[email protected]>
AuthorDate: Tue Apr 2 07:45:55 2024 -0700

    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 5a644188bf..ce4632fc02 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(

Reply via email to